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.FileInputStream
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 Constructor Description RpcInputStream(RpcPerforceFile file, java.nio.charset.Charset fromCharset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
int
read(byte[] targetBytes)
int
read(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.IOException
FileEncoderException
-
-
Method Detail
-
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.FileInputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.FileInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] targetBytes, int targetOffset, int targetLen) throws java.io.IOException
- Overrides:
read
in classjava.io.FileInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] targetBytes) throws java.io.IOException
- Overrides:
read
in classjava.io.FileInputStream
- Throws:
java.io.IOException
-
-