Class 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 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
      • getByteBuffer

        public java.nio.ByteBuffer getByteBuffer()
      • getCapacity

        public int getCapacity()
      • getLimit

        public int getLimit()
      • getPosition

        public int getPosition()