com.ibm.wsspi.http

Class HttpInputStream

  • java.lang.Object
    • java.io.InputStream
      • com.ibm.wsspi.http.HttpInputStream
  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable


    public class HttpInputStream
    extends java.io.InputStream
    Wrapper for an incoming HTTP request message body that provides the input stream interface.
    • Constructor Summary

      Constructors 
      Constructor and Description
      HttpInputStream(com.ibm.wsspi.http.channel.inbound.HttpInboundServiceContext context)
      Deprecated.  
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int available() 
      void close() 
      boolean isClosed()
      Query whether this stream has been closed already or not.
      void mark(int readlimit) 
      boolean markSupported() 
      int read() 
      int read(byte[] output) 
      int read(byte[] output, int offset, int length) 
      void reset() 
      long skip(long target) 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HttpInputStream

        @Deprecated
        public HttpInputStream(com.ibm.wsspi.http.channel.inbound.HttpInboundServiceContext context)
        Deprecated. 
        Constructor. This should not be called by users of this SPI
        Parameters:
        context -
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

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

        public final boolean isClosed()
        Query whether this stream has been closed already or not.
        Returns:
        boolean
      • mark

        public void mark(int readlimit)
        Overrides:
        mark in class java.io.InputStream
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.InputStream
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read(byte[] output,
               int offset,
               int length)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read(byte[] output)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.InputStream
        Throws:
        java.io.IOException
      • skip

        public long skip(long target)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.InputStream
        Throws:
        java.io.IOException