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

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.

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.

Returns:StyledOutput

the instance of a plain text StyledOutput