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)

Constructor
No description is available for this element.
IndexTypeName
1Filefile
Return Type

PageWriter

Modifiers

public

new PageWriter (StringBuilder)

Constructor
No description is available for this element.
IndexTypeName
1StringBuilderbuilder
Return Type

PageWriter

Modifiers

public

new PageWriter (OutputStream)

Constructor
No description is available for this element.
IndexTypeName
1OutputStreamstream
Return Type

PageWriter

Modifiers

public

new PageWriter ()

Constructor
No description is available for this element.
Return Type

PageWriter

Modifiers

public


Fields


charset

Field
No description is available for this element.
Type

Charset

Modifiers

public

stream

Field
No description is available for this element.
Type

OutputStream

Modifiers

protected

handler

Field
No description is available for this element.
Type

ErrorHandler

Modifiers

protected



Methods


format (String)

Method

Switches this writer to pretty-print formatting. The indent is the specified unit by which to indent inner elements.

IndexTypeName
1Stringindent
Return Type

PageWriter

Modifiers

public

write (Writable)

Method
No description is available for this element.
IndexTypeName
1Writablewritable
Return Type

void

Modifiers

public

write (Writable...)

Method
No description is available for this element.
IndexTypeName
1Writable[]writables
Return Type

void

Modifiers

public varargs

close ()

Method
No description is available for this element.
Return Type

void

Modifiers

public

getHandler ()

Method
No description is available for this element.
Return Type

ErrorHandler

Modifiers

public

setHandler (ErrorHandler)

Method
No description is available for this element.
IndexTypeName
1ErrorHandlerhandler
Return Type

void

Modifiers

public