Package com.groiss.fileimport
Class StructuredFileSettings
java.lang.Object
com.groiss.fileimport.StructuredFileSettings
- Direct Known Subclasses:
CSVSettings
holds all settings used for import/export
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<Deserializer>
protected File
protected InputStream
protected Reader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDeserializer
(int index, Deserializer deserializer) void
addDeserializer
(Deserializer deserializer) protected final void
getFile()
boolean
final boolean
isLocked()
abstract void
loadSettings
(Element settings) void
void
setInputStream
(InputStream inputStream) final void
void
-
Field Details
-
deserializers
-
file
-
inputStream
-
reader
-
-
Constructor Details
-
StructuredFileSettings
public StructuredFileSettings()
-
-
Method Details
-
getColumns
-
loadSettings
- Throws:
Exception
-
getSettings
-
getCharset
-
getDeserializers
- Returns:
- the deserializers
-
getReader
-
getInputStream
-
setReader
-
addDeserializer
- Parameters:
deserializer
- the deserializer to set
-
addDeserializer
- Parameters:
deserializer
- the deserializer to set
-
checkLocked
protected final void checkLocked() -
getFile
- Returns:
- the file
-
setFile
- Parameters:
file
- the file to set
-
isLocked
public final boolean isLocked() -
setInputStream
-
setLocked
public final void setLocked() -
isComplete
public boolean isComplete()
-