|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
jcifs.smb.SmbFileInputStream
public class SmbFileInputStream
This InputStream can read bytes from a file on an SMB file server. Offsets are 64 bits.
| Constructor Summary | |
|---|---|
SmbFileInputStream(SmbFile file)
Creates an InputStream for reading bytes from a file on
an SMB server represented by the SmbFile parameter. |
|
SmbFileInputStream(String url)
Creates an InputStream for reading bytes from a file on
an SMB server addressed by the url parameter. |
|
| Method Summary | |
|---|---|
int |
available()
This stream class is unbuffered. |
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
int |
read()
Reads a byte of data from this input stream. |
int |
read(byte[] b)
Reads up to b.length bytes of data from this input stream into an array of bytes. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into an array of bytes. |
int |
readDirect(byte[] b,
int off,
int len)
|
protected IOException |
seToIoe(SmbException se)
|
long |
skip(long n)
Skip n bytes of data on this stream. |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmbFileInputStream(String url)
throws SmbException,
MalformedURLException,
UnknownHostException
InputStream for reading bytes from a file on
an SMB server addressed by the url parameter. See SmbFile for a detailed description and examples of the smb
URL syntax.
url - An smb URL string representing the file to read from
SmbException
MalformedURLException
UnknownHostException
public SmbFileInputStream(SmbFile file)
throws SmbException,
MalformedURLException,
UnknownHostException
InputStream for reading bytes from a file on
an SMB server represented by the SmbFile parameter. See
SmbFile for a detailed description and examples of
the smb URL syntax.
file - An SmbFile specifying the file to read from
SmbException
MalformedURLException
UnknownHostException| Method Detail |
|---|
protected IOException seToIoe(SmbException se)
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException - if a network error occurs
public int read()
throws IOException
read in class InputStreamIOException - if a network error occurs
public int read(byte[] b)
throws IOException
read in class InputStreamIOException - if a network error occurs
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOException - if a network error occurs
public int readDirect(byte[] b,
int off,
int len)
throws IOException
IOException
public int available()
throws IOException
available in class InputStreamIOException
public long skip(long n)
throws IOException
skip in class InputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||