Class RpcByteBufferOutput
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.sys.RpcByteBufferOutput
Provides a Perforce-specific extension to the basic Java ByteBuffer to allow
us to intercept methods and implement our own extensions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RpcByteBufferOutputgetBufferOutputStream(String[] cmdArguments) intintgetLimit()intvoidwrite(byte b) voidwrite(byte[] b) voidwrite(byte[] sourceBytes, int off, int len) long
-
Method Details
-
getBufferOutputStream
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
public long write(Map<String, Object> map) throws IOException, FileDecoderException, FileEncoderException -
getByteBuffer
-
getCapacity
public int getCapacity() -
getLimit
public int getLimit() -
getPosition
public int getPosition()
-