public class RemoteFileInputStream extends InputStream
| Constructor and Description |
|---|
RemoteFileInputStream(byte[] id,
SyncRemoteFileChannel channel)
Cria um
InputStream a partir de um canal de acesso a um
arquivo remoto. |
RemoteFileInputStream(tecgraf.ftc.common.logic.RemoteFileChannelInfo info)
Cria um
InputStream a partir de um canal de acesso a um
arquivo remoto. |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] dst) |
int |
read(byte[] dst,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
public RemoteFileInputStream(tecgraf.ftc.common.logic.RemoteFileChannelInfo info)
throws IOException
InputStream a partir de um canal de acesso a um
arquivo remoto.info - Informações para conexão do canal.IOException - Em caso de falha na operação.public RemoteFileInputStream(byte[] id,
SyncRemoteFileChannel channel)
InputStream a partir de um canal de acesso a um
arquivo remoto.id - Indentificador do arquivo remoto.channel - Canal de acesso ao arquivo remoto. Deve ter sido aberto
antes de ser passado a esse construtor.public int available()
available in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] dst)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] dst,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2020. All rights reserved.