Class WriterHandler
- java.lang.Object
-
- org.daisy.dotify.formatter.impl.common.WriterHandler
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class WriterHandler extends Object implements Closeable
Provides a method for writing pages to a PagedMediaWriter.
-
-
Constructor Summary
Constructors Constructor Description WriterHandler(PagedMediaWriter writer)Creates a new writer handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(Iterable<? extends Volume> volumes)Writes this structure to the suppled PagedMediaWriter.
-
-
-
Constructor Detail
-
WriterHandler
public WriterHandler(PagedMediaWriter writer)
Creates a new writer handler.- Parameters:
writer- the PagedMediaWriter to write to
-
-
Method Detail
-
write
public void write(Iterable<? extends Volume> volumes)
Writes this structure to the suppled PagedMediaWriter.- Parameters:
volumes- the volumes to write
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-