public class FTCRequesterImpl extends Object implements FTCRequester
| Constructor and Description |
|---|
FTCRequesterImpl() |
| Modifier and Type | Method and Description |
|---|---|
FileChannel |
createFileChannel(File file,
boolean readOnly)
Solicita a criação de um java.util.FileChannel de acesso ao arquivo.
|
void |
fileChannelClosed(File file)
Informa que o canal para o arquivo indicado foi fechado.
|
boolean |
isLocked(File file)
Informa se o arquivo indicado está bloqueado para escrita.
|
public FileChannel createFileChannel(File file, boolean readOnly) throws Exception
createFileChannel in interface FTCRequesterfile - o arquivo a ser acessado.readOnly - indica se o acesso é somente leitura (true) ou se é de
leitura e escrita (false).Exception - caso haja erro na operação.public boolean isLocked(File file)
isLocked in interface FTCRequesterfile - o arquivo.public void fileChannelClosed(File file) throws Exception
fileChannelClosed in interface FTCRequesterfile - o arquivo cujo canal foi fechado.Exception - caso haja erro na operação.Copyright © 2020. All rights reserved.