Spec-Zone.ru › OpenJavaFX 24

Interface StyledOutput

All Superinterfaces:
AutoCloseable, Closeable
public interface StyledOutput extends Closeable
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 Type Method Description
void consume(StyledSegment segment)
Consumes the next styled segment.
void flush()
Flushes this output stream.
static StyledOutput forPlainText()
Creates an instance of a plain text StyledOutput.

Methods declared in interface java.io.Closeable

close

Method Details

consume

void consume(StyledSegment segment) throws IOException
Consumes the next styled segment.
Parameters:
segment - the segment to output
Throws:
IOException - when an I/O error occurs

flush

void flush() throws IOException
Flushes this output stream.
Throws:
IOException - when an I/O error occurs

forPlainText

static StyledOutput forPlainText()
Creates an instance of a plain text StyledOutput.
Returns:
the instance of a plain text StyledOutput

Report a bug or suggest an enhancement
Copyright © 2008, 2025, Oracle and/or its affiliates. All rights reserved.

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API