Class RpcLineEndFilterInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.perforce.p4java.impl.mapbased.rpc.sys.RpcLineEndFilterInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Filter input stream to do Perforce-specific line end
munging where necessary. This is a lot more complicated that
you might think, given the potential for cross-packet and cross-read
multibyte end of line spanning.
This should always be placed after a charset converter pipe.
Double byte charsets are not allowed here!
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionRpcLineEndFilterInputStream(InputStream inStream, ClientLineEnding lineEnding) -
Method Summary
Modifier and TypeMethodDescriptionintvoidmark(int readlimit) booleanintread()intread(byte[] b) Convenience method; equivalent to read(b, 0, b.length).intread(byte[] targetBytes, int off, int len) Read from the associated input stream looking for end of line strings to replace with the Perforce server newline character.voidreset()longskip(long n) Methods inherited from class java.io.FilterInputStream
closeMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
RpcLineEndFilterInputStream
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
Read from the associated input stream looking for end of line strings to replace with the Perforce server newline character.- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
Convenience method; equivalent to read(b, 0, b.length).- Overrides:
readin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-