public class SaifWriter extends AbstractRecordWriter
The SaifWriter.
SaifReader| Modifier and Type | Field and Description |
|---|---|
protected OsnConverterRegistry |
converters |
| Constructor and Description |
|---|
SaifWriter() |
SaifWriter(File file) |
SaifWriter(File file,
RecordDefinitionFactory recordDefinitionFactory) |
SaifWriter(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompositeTypeName(String typePath,
String compositeTypeName) |
protected void |
addExport(String typePath,
String compositeType,
String objectSubset) |
void |
close() |
protected OsnSerializer |
createSerializer(String typePath,
File file,
long maxSize) |
void |
flush() |
File |
getFile() |
int |
getMaxSubsetSize() |
String |
getObjectIdentifier(String typePath) |
Map<String,String> |
getObjectIdentifiers() |
String |
getObjectSetName(String typePath)
Get the object set name (file name) within a SAIF archive file name for the
specified type name.
|
Map<String,String> |
getObjectSetNames() |
String |
getSchemaResource() |
File |
getTempDirectory() |
boolean |
isIndentEnabled() |
void |
setCompositeTypeNames(Map<String,String> compositeTypeNames) |
void |
setFile(File file) |
void |
setIndentEnabled(boolean indentEnabled) |
void |
setMaxSubsetSize(int maxSubsetSize) |
void |
setObjectIdentifiers(Map<String,String> objectIdentifiers) |
void |
setObjectSetName(String typePath,
String subSetName)
Set the full object set name (file name) within a SAIF archive file name
for the specified type name.
|
void |
setObjectSetNames(Map<String,String> objectSetNames) |
void |
setRecordDefinitionFactory(RecordDefinitionFactory schema) |
void |
setSchemaFileNames(List<org.springframework.core.io.Resource> schemaFileNames) |
void |
setSchemaResource(String schemaResource) |
String |
toString() |
void |
write(Record object) |
void |
writeExport(OsnSerializer exportsSerializer,
String referenceId,
String compositeTypeName,
String objectSubset) |
getRecordDefinition, isIndent, isWritable, isWriteNulls, setIndent, setProperty, setWriteNullsclose, close, close, openclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setPropertySoft, setPropertyWeakclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setPropertySoft, setPropertyWeakprotected OsnConverterRegistry converters
public SaifWriter()
public SaifWriter(File file) throws IOException
IOExceptionpublic SaifWriter(File file, RecordDefinitionFactory recordDefinitionFactory) throws IOException
IOExceptionpublic SaifWriter(String fileName) throws IOException
IOExceptionpublic void close()
close in interface Writer<Record>close in interface AutoCloseableclose in class AbstractWriter<Record>protected OsnSerializer createSerializer(String typePath, File file, long maxSize) throws IOException
IOExceptionpublic void flush()
public File getFile()
public int getMaxSubsetSize()
public String getObjectSetName(String typePath)
typePath - The type name.public String getSchemaResource()
public File getTempDirectory()
public boolean isIndentEnabled()
public void setFile(File file) throws IOException
IOExceptionpublic void setIndentEnabled(boolean indentEnabled)
public void setMaxSubsetSize(int maxSubsetSize)
public void setObjectIdentifiers(Map<String,String> objectIdentifiers)
objectIdentifiers - the objectIdentifiers to setpublic void setObjectSetName(String typePath, String subSetName)
typePath - The type namesubSetName - The sub set name for the type name.public void setRecordDefinitionFactory(RecordDefinitionFactory schema)
public void setSchemaFileNames(List<org.springframework.core.io.Resource> schemaFileNames)
public void setSchemaResource(String schemaResource) throws IOException
IOExceptionpublic void write(Record object)
public void writeExport(OsnSerializer exportsSerializer, String referenceId, String compositeTypeName, String objectSubset) throws IOException
IOExceptionCopyright © 2015 Revolution Systems Inc.. All rights reserved.