Class RpcSocketInputStream

java.lang.Object
java.io.InputStream
com.perforce.p4java.impl.mapbased.rpc.stream.RpcSocketInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class RpcSocketInputStream extends InputStream
Implements the lowest level of the P4Java RPC input socket stream architecture.

This class does the most basic conversion from incoming bytes on the (TCP/IP) wire to a Java IO input stream whose contents are further decoded upstream.

  • Field Details

  • Constructor Details

    • RpcSocketInputStream

      public RpcSocketInputStream(Socket socket, ServerStats stats)
      Construct a suitable stream for the passed-in socket. No assumptions are made about the passed-in socket except that a) it's not null, and b) it's been initialized and set up for reading (or at least the successful retrieval of a suitable input stream) by the caller.
      Parameters:
      socket - non-null socket
      stats - stats
  • Method Details