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 boolean
ensureLineFeedAtEndOfFile
private boolean
eofSeen
private boolean
slashNSeen
private boolean
slashRSeen
private java.io.InputStream
target
-
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 void
close()
private int
eofGame(boolean previousWasSlashR)
void
mark(int readlimit)
int
read()
private int
readWithUpdate()
-
-
-
Method Detail
-
readWithUpdate
private int readWithUpdate() throws java.io.IOException
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
eofGame
private int eofGame(boolean previousWasSlashR)
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classjava.io.InputStream
-
-