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 Object
getFeature(String key)
Gets the value of a feature used by this Factory.String
getFileExtension()
Gets the file extension.Object
getProperty(String key)
Gets the value of a read-only property that applies to all objects returned by this Factory.TableFilter
getTableFilter()
Gets the table filter.EmbosserWriter
newEmbosserWriter(OutputStream os)
Creates a new embosser writer.void
setFeature(String key, Object value)
Sets a feature for new Objects returned by this Factory.boolean
supports8dot()
Returns true if 8-dot is supported, false otherwise.boolean
supportsDuplex()
Returns true if duplex is supported, false otherwise.boolean
supportsTable(Table table)
Returns true if the table is supported, false otherwise.boolean
supportsVolumes()
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:FileFormat
Gets the table filter.- Specified by:
getTableFilter
in interfaceFileFormat
- Returns:
- returns the table filter
-
supportsTable
public boolean supportsTable(Table table)
Description copied from interface:FileFormat
Returns true if the table is supported, false otherwise.- Specified by:
supportsTable
in interfaceFileFormat
- Parameters:
table
- the table- Returns:
- returns true if the table is supported, false otherwise
-
supportsDuplex
public boolean supportsDuplex()
Description copied from interface:FileFormatProperties
Returns true if duplex is supported, false otherwise.- Specified by:
supportsDuplex
in interfaceFileFormatProperties
- Returns:
- returns true if duplex is supported, false otherwise
-
supports8dot
public boolean supports8dot()
Description copied from interface:FileFormatProperties
Returns true if 8-dot is supported, false otherwise.- Specified by:
supports8dot
in interfaceFileFormatProperties
- Returns:
- returns true if 8-dot is supported, false otherwise
-
supportsVolumes
public boolean supportsVolumes()
Description copied from interface:FileFormatProperties
Returns true if a single file can contain multiple volumes, false otherwise.- Specified by:
supportsVolumes
in interfaceFileFormatProperties
- Returns:
- returns true if a single file can contain multiple volumes, false otherwise
-
newEmbosserWriter
public EmbosserWriter newEmbosserWriter(OutputStream os)
Description copied from interface:FileFormat
Creates a new embosser writer.- Specified by:
newEmbosserWriter
in interfaceFileFormat
- Parameters:
os
- the output stream- Returns:
- returns a new embosser writer
-
getFileExtension
public String getFileExtension()
Description copied from interface:FileFormatProperties
Gets the file extension.- Specified by:
getFileExtension
in interfaceFileFormatProperties
- Returns:
- returns the file extension
-
setFeature
public void setFeature(String key, Object value)
Description copied from interface:Factory
Sets a feature for new Objects returned by this Factory.- Specified by:
setFeature
in interfaceFactory
- Parameters:
key
- the key for the featurevalue
- the value of the feature
-
getFeature
public Object getFeature(String key)
Description copied from interface:Factory
Gets the value of a feature used by this Factory.- Specified by:
getFeature
in 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:Factory
Gets the value of a read-only property that applies to all objects returned by this Factory.- Specified by:
getProperty
in interfaceFactory
- Parameters:
key
- the name of the property to get- Returns:
- returns the value associated with this property or null if none is found
-
-