Class LinuxLineFeedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.maven.plugins.assembly.utils.LinuxLineFeedInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
class LinuxLineFeedInputStream extends java.io.InputStream
-
-
Field Summary
Fields Modifier and Type Field Description private booleanensureLineFeedAtEndOfFileprivate booleaneofSeenprivate booleanslashNSeenprivate booleanslashRSeenprivate java.io.InputStreamtarget
-
Constructor Summary
Constructors Constructor Description LinuxLineFeedInputStream(java.io.InputStream in, boolean ensureLineFeedAtEndOfFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private inteofGame(boolean previousWasSlashR)voidmark(int readlimit)intread()private intreadWithUpdate()
-
-
-
Method Detail
-
readWithUpdate
private int readWithUpdate() throws java.io.IOException- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
eofGame
private int eofGame(boolean previousWasSlashR)
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
mark
public void mark(int readlimit)
- Overrides:
markin classjava.io.InputStream
-
-