Package org.apache.jackrabbit.vault.util
Class LineOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.jackrabbit.vault.util.LineOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class LineOutputStream extends java.io.OutputStreamProvides 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(java.io.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)
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
public void flush(boolean addLF) throws java.io.IOException- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
-