public class LineBreakingOutputStream
extends java.io.OutputStream
OutputStream and insert line breaks while writing. Does not close the wrapped OutputStream.| Constructor and Description |
|---|
LineBreakingOutputStream(java.io.OutputStream toWrap)
Wrap
OutputStream and insert line breaks every 80 characters. |
LineBreakingOutputStream(java.io.OutputStream toWrap,
int maxWidth)
Wrap
OutputStream and insert line breaks every maxWidth characters. |
LineBreakingOutputStream(java.io.OutputStream toWrap,
int maxWidth,
java.lang.String lineSeparator)
Wrap
OutputStream and insert lineSeparator every maxWidth characters. |
public LineBreakingOutputStream(java.io.OutputStream toWrap)
OutputStream and insert line breaks every 80 characters. Does not close the wrapped OutputStream.public LineBreakingOutputStream(java.io.OutputStream toWrap,
int maxWidth)
OutputStream and insert line breaks every maxWidth characters. Does not close the wrapped OutputStream.public LineBreakingOutputStream(java.io.OutputStream toWrap,
int maxWidth,
java.lang.String lineSeparator)
OutputStream and insert lineSeparator every maxWidth characters. Does not close the wrapped OutputStream.public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException