public class RemoteFileInputStream
extends java.io.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) |
java.lang.String |
toString() |
public RemoteFileInputStream(tecgraf.ftc.common.logic.RemoteFileChannelInfo info)
throws java.io.IOException
InputStream a partir de um canal de acesso a um
arquivo remoto.info - Informações para conexão do canal.java.io.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 java.io.InputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] dst)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] dst,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016. All Rights Reserved.