public class RemoteFileOutputStream extends OutputStream
| Constructor and Description |
|---|
RemoteFileOutputStream(byte[] id,
SyncRemoteFileChannel channel)
Cria um
OutputStream a partir de um canal de acesso a um
arquivo remoto. |
RemoteFileOutputStream(tecgraf.ftc.common.logic.RemoteFileChannelInfo info)
Cria um
OutputStream a partir de um canal de acesso a um
arquivo remoto. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Não faz nada.
|
String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public RemoteFileOutputStream(tecgraf.ftc.common.logic.RemoteFileChannelInfo info)
throws IOException
OutputStream 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 RemoteFileOutputStream(byte[] id,
SyncRemoteFileChannel channel)
OutputStream 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 void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2020. All rights reserved.