APIdia Launch Partner
Top Description Methods
jfx.incubator.scene.control.richtext.model

public Interface StyledOutput

extends Closeable
Known Direct Implementers
com.sun.jfx.incubator.scene.control.richtext.HtmlStyledOutput, com.sun.jfx.incubator.scene.control.richtext.RtfStyledOutput, com.sun.jfx.incubator.scene.control.richtext.SegmentStyledOutput, com.sun.jfx.incubator.scene.control.richtext.StringBuilderStyledOutput, jfx.incubator.scene.control.richtext.model.RichTextFormatHandler.RichStyledOutput
Imports
java.io.Closeable, .IOException, com.sun.jfx.incubator.scene.control.richtext.StringBuilderStyledOutput, jfx.incubator.scene.control.richtext.LineEnding

Class represents a consumer of styled text segments for the purposes of exporting, copying, or saving to an output stream.
Since
24

Method Summary

Modifier and TypeMethod and Description
public void
consume(StyledSegment
the segment to output
segment
)

Consumes the next styled segment.

public void
flush()

Flushes this output stream.

public static StyledOutput

Returns:

the instance of a plain text StyledOutput
forPlainText
()

Creates an instance of a plain text StyledOutput with the platform line ending.

public static StyledOutput

Returns:

the instance of a plain text StyledOutput
forPlainText
(LineEnding
the line ending characters
lineEnding
)

Creates an instance of a plain text StyledOutput with the specified line ending characters.

Inherited from java.io.Closeable:
close

Method Detail

consumeback to summary
public void consume(StyledSegment segment) throws IOException

Consumes the next styled segment.

Parameters
segment:StyledSegment

the segment to output

Exceptions
IOException:
when an I/O error occurs
flushback to summary
public void flush() throws IOException

Flushes this output stream.

Exceptions
IOException:
when an I/O error occurs
forPlainTextback to summary
public static StyledOutput forPlainText()

Creates an instance of a plain text StyledOutput with the platform line ending.

Returns:StyledOutput

the instance of a plain text StyledOutput

forPlainTextback to summary
public static StyledOutput forPlainText(LineEnding lineEnding)

Creates an instance of a plain text StyledOutput with the specified line ending characters.

Parameters
lineEnding:LineEnding

the line ending characters

Returns:StyledOutput

the instance of a plain text StyledOutput

Since
26