Class BrailloVolumeWriter
- java.lang.Object
-
- org.daisy.braille.utils.impl.provider.braillo.BrailloVolumeWriter
-
- All Implemented Interfaces:
VolumeWriter
public abstract class BrailloVolumeWriter extends Object implements VolumeWriter
Provides a volume writer for Braillo embossers. Note that, this volume writer assumes LineBreaks.Type.DOS and Padding.BEFORE.
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]
FF_SEQ
-
Constructor Summary
Constructors Constructor Description BrailloVolumeWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte[]
getFooter(int pages)
abstract byte[]
getHeader(int pages)
abstract List<? extends List<Byte>>
reorder(List<? extends List<Byte>> pages)
boolean
supportsVolumes()
boolean
write(List<? extends List<Byte>> input, File out)
Writes the pages in this volume to a file.
-
-
-
Method Detail
-
getHeader
public abstract byte[] getHeader(int pages) throws IOException
- Throws:
IOException
-
getFooter
public abstract byte[] getFooter(int pages) throws IOException
- Throws:
IOException
-
write
public boolean write(List<? extends List<Byte>> input, File out) throws IOException
Description copied from interface:VolumeWriter
Writes the pages in this volume to a file.- Specified by:
write
in interfaceVolumeWriter
- Parameters:
input
- the pages to writeout
- the file to write to- Returns:
- returns true if writing was successful, false otherwise
- Throws:
IOException
- if an I/O error occurs
-
supportsVolumes
public boolean supportsVolumes()
-
-