Class RpcInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
com.perforce.p4java.impl.mapbased.rpc.sys.RpcInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Provides a Perforce-specific extension to the basic Java
InputStream to allow us to intercept methods and implement
our own extensions.
The current main use is for line-end processing with the RpcLineEndFilterInputStream filter class; more uses will probably follow with experience....
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FileInputStream
available, getChannel, getFD, readAllBytes, readNBytes, skipMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
RpcInputStream
public RpcInputStream(RpcPerforceFile file, Charset fromCharset) throws IOException, FileEncoderException - Throws:
IOExceptionFileEncoderException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFileInputStream- Throws:
IOException
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-
read
- Overrides:
readin classFileInputStream- Throws:
IOException
-