Class 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....

    • 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)  
      • Methods inherited from class java.io.FileInputStream

        available, finalize, getChannel, getFD, skip
      • Methods inherited from class java.io.InputStream

        mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.FileInputStream
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class java.io.FileInputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] targetBytes,
                        int targetOffset,
                        int targetLen)
                 throws java.io.IOException
        Overrides:
        read in class java.io.FileInputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] targetBytes)
                 throws java.io.IOException
        Overrides:
        read in class java.io.FileInputStream
        Throws:
        java.io.IOException