Class RpcByteBufferOutput
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.sys.RpcByteBufferOutput
-
public class RpcByteBufferOutput extends java.lang.Object
Provides a Perforce-specific extension to the basic Java ByteBuffer to allow us to intercept methods and implement our own extensions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RpcByteBufferOutput
getBufferOutputStream(java.lang.String[] cmdArguments)
java.nio.ByteBuffer
getByteBuffer()
int
getCapacity()
int
getLimit()
int
getPosition()
void
write(byte b)
void
write(byte[] b)
void
write(byte[] sourceBytes, int off, int len)
long
write(java.util.Map<java.lang.String,java.lang.Object> map)
-
-
-
Method Detail
-
getBufferOutputStream
public static RpcByteBufferOutput getBufferOutputStream(java.lang.String[] cmdArguments) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(byte[] sourceBytes, int off, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(byte b) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public long write(java.util.Map<java.lang.String,java.lang.Object> map) throws java.io.IOException, FileDecoderException, FileEncoderException
- Throws:
java.io.IOException
FileDecoderException
FileEncoderException
-
getByteBuffer
public java.nio.ByteBuffer getByteBuffer()
-
getCapacity
public int getCapacity()
-
getLimit
public int getLimit()
-
getPosition
public int getPosition()
-
-