PageWriter
Class
A simple utility to write pages while handling all of the streams, charsets and exceptions that are required.
Extends
Object
Implements
AutoCloseable
Modifiers
public
try (final PageWriter writer = new PageWriter(file)) { // auto-handles streams
writer.write(page);
}
Constructors
new PageWriter (File)
ConstructorNo description is available for this element.
Index | Type | Name |
---|---|---|
1 | File | file |
Return Type
PageWriter
Modifiers
public
new PageWriter (StringBuilder)
ConstructorNo description is available for this element.
Index | Type | Name |
---|---|---|
1 | StringBuilder | builder |
Return Type
PageWriter
Modifiers
public
new PageWriter (OutputStream)
ConstructorNo description is available for this element.
Index | Type | Name |
---|---|---|
1 | OutputStream | stream |
Return Type
PageWriter
Modifiers
public
new PageWriter ()
ConstructorNo description is available for this element.
Return Type
PageWriter
Modifiers
public
Fields
charset
FieldNo description is available for this element.
Type
Charset
Modifiers
public
stream
FieldNo description is available for this element.
Type
OutputStream
Modifiers
protected
handler
FieldNo description is available for this element.
Type
ErrorHandler
Modifiers
protected
Methods
write (Writable...)
MethodNo description is available for this element.
Index | Type | Name |
---|---|---|
1 | Writable[] | writables |
Return Type
void
Modifiers
public varargs
write (Writable)
MethodNo description is available for this element.
Index | Type | Name |
---|---|---|
1 | Writable | writable |
Return Type
void
Modifiers
public
close ()
MethodNo description is available for this element.
Return Type
void
Modifiers
public
getHandler ()
MethodNo description is available for this element.
Return Type
ErrorHandler
Modifiers
public
setHandler (ErrorHandler)
MethodNo description is available for this element.
Index | Type | Name |
---|---|---|
1 | ErrorHandler | handler |
Return Type
void
Modifiers
public