Package jadex.tools.jcc
Class StyledDocumentOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.PrintStream
-
- jadex.tools.jcc.StyledDocumentOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
public class StyledDocumentOutputStream extends java.io.PrintStream
A stream that prints in a styled document (of a text pane).
-
-
Constructor Summary
Constructors Constructor Description StyledDocumentOutputStream(javax.swing.text.StyledDocument doc, javax.swing.text.Style style)
Create a new
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] b)
Write a byte array to the document.void
write(byte[] b, int off, int len)
Write a byte to the document.void
write(int b)
Write a byte to the document.-
Methods inherited from class java.io.PrintStream
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError
-
-
-
-
Method Detail
-
write
public void write(int b)
Write a byte to the document.- Overrides:
write
in classjava.io.PrintStream
- Parameters:
b
- The byte.
-
write
public void write(byte[] b) throws java.io.IOException
Write a byte array to the document.- Overrides:
write
in classjava.io.FilterOutputStream
- Parameters:
b
- The byte array.- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len)
Write a byte to the document.- Overrides:
write
in classjava.io.PrintStream
- Parameters:
b
- The byte array.off
- The offset.len
- The length.
-
-