public class SmbFileInputStream extends InputStream
| コンストラクタと説明 |
|---|
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. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
mark, markSupported, resetpublic 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 fromSmbExceptionMalformedURLExceptionUnknownHostExceptionpublic 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 fromSmbExceptionMalformedURLExceptionUnknownHostExceptionprotected IOException seToIoe(SmbException se)
public void close()
throws IOException
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 InputStreamIOException - if a network error occurspublic int read()
throws IOException
read クラス内 InputStreamIOException - if a network error occurspublic int read(byte[] b)
throws IOException
read クラス内 InputStreamIOException - if a network error occurspublic int read(byte[] b,
int off,
int len)
throws IOException
read クラス内 InputStreamIOException - if a network error occurspublic int readDirect(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic int available()
throws IOException
available クラス内 InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip クラス内 InputStreamIOExceptionCopyright © 2016. All rights reserved.