public class LazyFileContentInputStream
extends org.apache.commons.io.input.AutoCloseInputStream
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.commons.vfs2.FileObject | fileObjectThe file object to read from. | 
| protected boolean | openedTrue if the input stream was opened. | 
in| Constructor and Description | 
|---|
| LazyFileContentInputStream(org.apache.commons.vfs2.FileObject fileObject)Creates a new  LazyFileInputStreamfor the given file. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | available() | 
| void | close() | 
| void | mark(int readlimit) | 
| boolean | markSupported() | 
| protected void | open()Open the stream if required. | 
| int | read() | 
| int | read(byte[] b) | 
| int | read(byte[] b,
    int off,
    int len) | 
| void | reset() | 
| long | skip(long n) | 
afterRead, builder, finalizeprotected final org.apache.commons.vfs2.FileObject fileObject
protected boolean opened
public LazyFileContentInputStream(org.apache.commons.vfs2.FileObject fileObject)
                           throws org.apache.commons.vfs2.FileSystemException
LazyFileInputStream for the given file. If the
 file is unreadable, a FileSystemException is thrown.
 The file is not opened until the first byte is read from the stream.fileObject - the fileorg.apache.commons.vfs2.FileNotFoundExceptionorg.apache.commons.vfs2.FileSystemExceptionprotected void open()
             throws IOException
IOExceptionpublic int read()
         throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int available()
              throws IOException
available in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.commons.io.input.AutoCloseInputStreamIOExceptionpublic void reset()
           throws IOException
reset in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic boolean markSupported()
markSupported in class org.apache.commons.io.input.ProxyInputStreampublic void mark(int readlimit)
mark in class org.apache.commons.io.input.ProxyInputStreampublic long skip(long n)
          throws IOException
skip in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b)
         throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b,
                int off,
                int len)
         throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.