Class StructuredFileSettings

java.lang.Object
com.groiss.fileimport.StructuredFileSettings
Direct Known Subclasses:
CSVSettings

public abstract class StructuredFileSettings extends Object
holds all settings used for import/export
  • Field Details

  • Constructor Details

    • StructuredFileSettings

      public StructuredFileSettings()
  • Method Details

    • getColumns

      public abstract List<? extends Column> getColumns()
    • loadSettings

      public abstract void loadSettings(Element settings) throws Exception
      Throws:
      Exception
    • getSettings

      public abstract List<Pair<String,String>> getSettings()
    • getCharset

      public Charset getCharset()
    • getDeserializers

      public List<Deserializer> getDeserializers()
      Returns:
      the deserializers
    • getReader

      public Reader getReader()
    • getInputStream

      public InputStream getInputStream()
    • setReader

      public void setReader(Reader reader)
    • addDeserializer

      public void addDeserializer(Deserializer deserializer)
      Parameters:
      deserializer - the deserializer to set
    • addDeserializer

      public void addDeserializer(int index, Deserializer deserializer)
      Parameters:
      deserializer - the deserializer to set
    • checkLocked

      protected final void checkLocked()
    • getFile

      public File getFile()
      Returns:
      the file
    • setFile

      public void setFile(File file)
      Parameters:
      file - the file to set
    • isLocked

      public final boolean isLocked()
    • setInputStream

      public void setInputStream(InputStream inputStream)
    • setLocked

      public final void setLocked()
    • isComplete

      public boolean isComplete()