Class BrailleEditorsFileFormat
- java.lang.Object
-
- org.daisy.dotify.api.factory.AbstractFactory
-
- org.daisy.braille.utils.impl.provider.BrailleEditorsFileFormat
-
- All Implemented Interfaces:
Serializable,FileFormat,FileFormatProperties,Factory,FactoryProperties
public class BrailleEditorsFileFormat extends AbstractFactory implements FileFormat
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.factory.FactoryProperties
FactoryProperties.ComparatorBuilder
-
-
Constructor Summary
Constructors Constructor Description BrailleEditorsFileFormat(BrailleEditorsFileFormatProvider.FileType type, TableCatalogService tableCatalog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetFeature(String key)Gets the value of a feature used by this Factory.StringgetFileExtension()Gets the file extension.ObjectgetProperty(String key)Gets the value of a read-only property that applies to all objects returned by this Factory.TableFiltergetTableFilter()Gets the table filter.EmbosserWriternewEmbosserWriter(OutputStream os)Creates a new embosser writer.voidsetFeature(String key, Object value)Sets a feature for new Objects returned by this Factory.booleansupports8dot()Returns true if 8-dot is supported, false otherwise.booleansupportsDuplex()Returns true if duplex is supported, false otherwise.booleansupportsTable(Table table)Returns true if the table is supported, false otherwise.booleansupportsVolumes()Returns true if a single file can contain multiple volumes, false otherwise.-
Methods inherited from class org.daisy.dotify.api.factory.AbstractFactory
getDescription, getDisplayName, getIdentifier, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.daisy.dotify.api.factory.FactoryProperties
getDescription, getDisplayName, getIdentifier
-
-
-
-
Constructor Detail
-
BrailleEditorsFileFormat
public BrailleEditorsFileFormat(BrailleEditorsFileFormatProvider.FileType type, TableCatalogService tableCatalog)
-
-
Method Detail
-
getTableFilter
public TableFilter getTableFilter()
Description copied from interface:FileFormatGets the table filter.- Specified by:
getTableFilterin interfaceFileFormat- Returns:
- returns the table filter
-
supportsTable
public boolean supportsTable(Table table)
Description copied from interface:FileFormatReturns true if the table is supported, false otherwise.- Specified by:
supportsTablein interfaceFileFormat- Parameters:
table- the table- Returns:
- returns true if the table is supported, false otherwise
-
supportsDuplex
public boolean supportsDuplex()
Description copied from interface:FileFormatPropertiesReturns true if duplex is supported, false otherwise.- Specified by:
supportsDuplexin interfaceFileFormatProperties- Returns:
- returns true if duplex is supported, false otherwise
-
supports8dot
public boolean supports8dot()
Description copied from interface:FileFormatPropertiesReturns true if 8-dot is supported, false otherwise.- Specified by:
supports8dotin interfaceFileFormatProperties- Returns:
- returns true if 8-dot is supported, false otherwise
-
supportsVolumes
public boolean supportsVolumes()
Description copied from interface:FileFormatPropertiesReturns true if a single file can contain multiple volumes, false otherwise.- Specified by:
supportsVolumesin interfaceFileFormatProperties- Returns:
- returns true if a single file can contain multiple volumes, false otherwise
-
newEmbosserWriter
public EmbosserWriter newEmbosserWriter(OutputStream os)
Description copied from interface:FileFormatCreates a new embosser writer.- Specified by:
newEmbosserWriterin interfaceFileFormat- Parameters:
os- the output stream- Returns:
- returns a new embosser writer
-
getFileExtension
public String getFileExtension()
Description copied from interface:FileFormatPropertiesGets the file extension.- Specified by:
getFileExtensionin interfaceFileFormatProperties- Returns:
- returns the file extension
-
setFeature
public void setFeature(String key, Object value)
Description copied from interface:FactorySets a feature for new Objects returned by this Factory.- Specified by:
setFeaturein interfaceFactory- Parameters:
key- the key for the featurevalue- the value of the feature
-
getFeature
public Object getFeature(String key)
Description copied from interface:FactoryGets the value of a feature used by this Factory.- Specified by:
getFeaturein interfaceFactory- Parameters:
key- the key for the feature- Returns:
- returns the current value of the feature
-
getProperty
public Object getProperty(String key)
Description copied from interface:FactoryGets the value of a read-only property that applies to all objects returned by this Factory.- Specified by:
getPropertyin interfaceFactory- Parameters:
key- the name of the property to get- Returns:
- returns the value associated with this property or null if none is found
-
-