APIdia Launch Partner
Top Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

public Class StringBuilderStyledOutput

extends Object
implements StyledOutput
Class Inheritance
All Implemented Interfaces
jfx.incubator.scene.control.richtext.model.StyledOutput, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.IOException, jfx.incubator.scene.control.richtext.LineEnding, jfx.incubator.scene.control.richtext.model.StyledOutput, .StyledSegment

Field Summary

Modifier and TypeField and Description
private final int
private final String
private final StringBuilder

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private void
append(String text, boolean allowPartial)

public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

limitback to summary
private final int limit
newlineback to summary
private final String newline
sbback to summary
private final StringBuilder sb

Constructor Detail

StringBuilderStyledOutputback to summary
public StringBuilderStyledOutput(StringBuilder sb, LineEnding lineEnding, int limit)
StringBuilderStyledOutputback to summary
public StringBuilderStyledOutput(LineEnding lineEnding)

Method Detail

appendback to summary
private void append(String text, boolean allowPartial) throws IOException
closeback to summary
public void close() throws IOException

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
consumeback to summary
public void consume(StyledSegment seg) throws IOException

Implements jfx.incubator.scene.control.richtext.model.StyledOutput.consume.

Doc from jfx.incubator.scene.control.richtext.model.StyledOutput.consume.

Consumes the next styled segment.

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

Implements jfx.incubator.scene.control.richtext.model.StyledOutput.flush.

Doc from jfx.incubator.scene.control.richtext.model.StyledOutput.flush.

Flushes this output stream.

Annotations
@Override
Exceptions
IOException:
when an I/O error occurs
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override