| java.lang.Object java.io.InputStream com.knowgate.jcifs.smb.SmbFileInputStream
SmbFileInputStream | public class SmbFileInputStream extends InputStream (Code) | | This InputStream can read bytes from a file on an SMB file server. Offsets are 64 bits.
|
Method Summary | |
public int | available() | public void | close() Closes this input stream and releases any system resources associated with the stream. | public int | read() Reads a byte of data from this input stream. | public int | read(byte[] b) Reads up to b.length bytes of data from this input stream into an array of bytes. | public int | read(byte[] b, int off, int len) Reads up to len bytes of data from this input stream into an array of bytes. | public long | skip(long n) Skip n bytes of data on this stream. |
SmbFileInputStream | public SmbFileInputStream(String url) throws SmbException, MalformedURLException, UnknownHostException(Code) | | Creates an
java.io.InputStream for reading bytes from a file on
an SMB server addressed by the url parameter. See
jcifs.smb.SmbFile for a detailed description and examples of the smb
URL syntax.
Parameters: url - An smb URL string representing the file to read from A new InputStream for the specified SmbFile |
SmbFileInputStream | public SmbFileInputStream(SmbFile file) throws SmbException, MalformedURLException, UnknownHostException(Code) | | Creates an
java.io.InputStream for reading bytes from a file on
an SMB server represented by the
jcifs.smb.SmbFile parameter. See
jcifs.smb.SmbFile for a detailed description and examples of
the smb URL syntax.
Parameters: url - An smb URL string representing the file to write to A new InputStream for the specified SmbFile |
close | public void close() throws IOException(Code) | | Closes this input stream and releases any system resources associated with the stream.
throws: IOException - if a network error occurs |
read | public int read(byte[] b) throws IOException(Code) | | Reads up to b.length bytes of data from this input stream into an array of bytes.
throws: IOException - if a network error occurs |
read | public int read(byte[] b, int off, int len) throws IOException(Code) | | Reads up to len bytes of data from this input stream into an array of bytes.
throws: IOException - if a network error occurs |
skip | public long skip(long n) throws IOException(Code) | | Skip n bytes of data on this stream. This operation will not result
in any IO with the server. Unlink InputStream value less than
the one provided will not be returned if it exceeds the end of the file
(if this is a problem let us know).
|
|
|