Class EmptyInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

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

      Constructors 
      Modifier Constructor Description
      private EmptyInputStream()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int available()
      Deprecated.
      Returns 0.
      void close()
      Deprecated.
      Noop.
      void mark​(int readLimit)
      Deprecated.
      Noop.
      boolean markSupported()
      Deprecated.
      Returns true.
      int read()
      Deprecated.
      Returns -1.
      int read​(byte[] buf)
      Deprecated.
      Returns -1.
      int read​(byte[] buf, int off, int len)
      Deprecated.
      Returns -1.
      void reset()
      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
    • Constructor Detail

      • EmptyInputStream

        private EmptyInputStream()
        Deprecated.
    • Method Detail

      • available

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

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

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

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

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

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

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

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

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