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

public Class SegmentStyledOutput

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, java.util.ArrayList, jfx.incubator.scene.control.richtext.model.StyledOutput, .StyledSegment

This StyledOutput simply collects StyledSegments in a list.

Field Summary

Modifier and TypeField and Description
private ArrayList<StyledSegment>

Constructor Summary

AccessConstructor and Description
public
SegmentStyledOutput(int initialCapacity)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

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

public void
public void
public StyledSegment[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

segmentsback to summary
private ArrayList<StyledSegment> segments

Constructor Detail

SegmentStyledOutputback to summary
public SegmentStyledOutput(int initialCapacity)

Method Detail

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 s) 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
getSegmentsback to summary
public StyledSegment[] getSegments()