Class RpcInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FileInputStream
-
- com.perforce.p4java.impl.mapbased.rpc.sys.RpcInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class RpcInputStream extends java.io.FileInputStreamProvides 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 Constructor Description RpcInputStream(RpcPerforceFile file, java.nio.charset.Charset fromCharset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] targetBytes)intread(byte[] targetBytes, int targetOffset, int targetLen)
-
-
-
Constructor Detail
-
RpcInputStream
public RpcInputStream(RpcPerforceFile file, java.nio.charset.Charset fromCharset) throws java.io.IOException, FileEncoderException
- Throws:
java.io.IOExceptionFileEncoderException
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FileInputStream- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FileInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] targetBytes, int targetOffset, int targetLen) throws java.io.IOException- Overrides:
readin classjava.io.FileInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] targetBytes) throws java.io.IOException- Overrides:
readin classjava.io.FileInputStream- Throws:
java.io.IOException
-
-