Package com.xebialabs.license.generator
Class LineBreakingOutputStream
java.lang.Object
java.io.OutputStream
com.xebialabs.license.generator.LineBreakingOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Wrap
OutputStream and insert line breaks while writing. Does not close the wrapped OutputStream.-
Constructor Summary
ConstructorsConstructorDescriptionLineBreakingOutputStream(OutputStream toWrap) WrapOutputStreamand insert line breaks every 80 characters.LineBreakingOutputStream(OutputStream toWrap, int maxWidth, String lineSeparator) WrapOutputStreamand insert lineSeparator every maxWidth characters. -
Method Summary
Methods inherited from class java.io.OutputStream
close, nullOutputStream, write, write
-
Constructor Details
-
LineBreakingOutputStream
WrapOutputStreamand insert line breaks every 80 characters. Does not close the wrappedOutputStream. -
LineBreakingOutputStream
WrapOutputStreamand insert lineSeparator every maxWidth characters. Does not close the wrappedOutputStream.
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-