Class NuxeoContentStream.LazyInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.nuxeo.ecm.core.opencmis.impl.server.NuxeoContentStream.LazyInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
NuxeoContentStream

public static class NuxeoContentStream.LazyInputStream extends org.apache.commons.io.input.ProxyInputStream
An InputStream that fetches the actual stream from a Supplier on first use.
Since:
7.10
  • Field Details

  • Constructor Details

  • Method Details

    • beforeRead

      protected void beforeRead(int n)
      Overrides:
      beforeRead in class org.apache.commons.io.input.ProxyInputStream
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.apache.commons.io.input.ProxyInputStream
      Throws:
      IOException
    • skip

      public long skip(long ln) throws IOException
      Overrides:
      skip in class org.apache.commons.io.input.ProxyInputStream
      Throws:
      IOException
    • available

      public int available() throws IOException
      Overrides:
      available in class org.apache.commons.io.input.ProxyInputStream
      Throws:
      IOException
    • mark

      public void mark(int readlimit)
      Overrides:
      mark in class org.apache.commons.io.input.ProxyInputStream
    • reset

      public void reset() throws IOException
      Overrides:
      reset in class org.apache.commons.io.input.ProxyInputStream
      Throws:
      IOException
    • markSupported

      public boolean markSupported()
      Overrides:
      markSupported in class org.apache.commons.io.input.ProxyInputStream