Package org.apache.jackrabbit.vault.util
Class LineOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.jackrabbit.vault.util.LineOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class LineOutputStream extends OutputStream
Provides an output stream wrapper that detects line feed sequences and replaces them by new ones.
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]LS_BINARYstatic byte[]LS_NATIVEstatic byte[]LS_UNIXstatic byte[]LS_WINDOWS
-
Constructor Summary
Constructors Constructor Description LineOutputStream(OutputStream out, byte[] ls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidflush(boolean addLF)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
LineOutputStream
public LineOutputStream(OutputStream out, byte[] ls)
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
public void flush(boolean addLF) throws IOException- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-