Class EmptyInputStream

java.lang.Object
java.io.InputStream
org.apache.hc.core5.http.impl.io.EmptyInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

@Deprecated public final class EmptyInputStream extends InputStream
Deprecated.
Please use EmptyInputStream
Since:
4.4
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final EmptyInputStream
    Deprecated.
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated.
    Returns 0.
    void
    Deprecated.
    Noop.
    void
    mark(int readLimit)
    Deprecated.
    Noop.
    boolean
    Deprecated.
    Returns true.
    int
    Deprecated.
    Returns -1.
    int
    read(byte[] buf)
    Deprecated.
    Returns -1.
    int
    read(byte[] buf, int off, int len)
    Deprecated.
    Returns -1.
    void
    Deprecated.
    Noop.
    long
    skip(long n)
    Deprecated.
    Returns 0.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • EmptyInputStream

      private EmptyInputStream()
      Deprecated.
  • Method Details

    • available

      public int available()
      Deprecated.
      Returns 0.
      Overrides:
      available in class InputStream
    • close

      public void close()
      Deprecated.
      Noop.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
    • mark

      public void mark(int readLimit)
      Deprecated.
      Noop.
      Overrides:
      mark in class InputStream
    • markSupported

      public boolean markSupported()
      Deprecated.
      Returns true.
      Overrides:
      markSupported in class InputStream
    • read

      public int read()
      Deprecated.
      Returns -1.
      Specified by:
      read in class InputStream
    • read

      public int read(byte[] buf)
      Deprecated.
      Returns -1.
      Overrides:
      read in class InputStream
    • read

      public int read(byte[] buf, int off, int len)
      Deprecated.
      Returns -1.
      Overrides:
      read in class InputStream
    • reset

      public void reset()
      Deprecated.
      Noop.
      Overrides:
      reset in class InputStream
    • skip

      public long skip(long n)
      Deprecated.
      Returns 0.
      Overrides:
      skip in class InputStream