public interface PassthroughFile
Modifier and Type | Method and Description |
---|---|
boolean |
canRead() |
boolean |
canWrite() |
boolean |
changeDirectory(String path) |
void |
close() |
boolean |
delete() |
boolean |
exists() |
String |
fileFull(boolean lsFormat) |
void |
flush() |
long |
getCRC() |
long |
getFreeSpace() |
byte[] |
getMD5() |
String |
getModificationTime()
Return the Modification time
|
byte[] |
getSHA1() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isInReading() |
boolean |
isInWriting() |
long |
length() |
List<String> |
list() |
List<String> |
listFull(boolean lsFormat) |
boolean |
mkdir() |
void |
position(long position) |
io.netty.buffer.ByteBuf |
read(int sizeblock) |
boolean |
renameTo(String path) |
boolean |
rmdir() |
long |
transferTo(FileChannel out)
Note: be aware to not directly use transferTo or transferFrom at once but to use them by
chunk to prevent memory usage (mmap used under the wood by the JVM)
|
List<String> |
wildcard(String subPath) |
int |
write(io.netty.buffer.ByteBuf buffer) |
boolean isDirectory()
boolean isFile()
io.netty.buffer.ByteBuf read(int sizeblock) throws PassthroughException
PassthroughException
int write(io.netty.buffer.ByteBuf buffer) throws PassthroughException
PassthroughException
long length()
boolean canRead()
boolean canWrite()
boolean isInReading()
boolean isInWriting()
boolean exists()
boolean delete() throws PassthroughException
PassthroughException
boolean renameTo(String path) throws PassthroughException
PassthroughException
void position(long position) throws PassthroughException
PassthroughException
void flush() throws PassthroughException
PassthroughException
long transferTo(FileChannel out) throws PassthroughException
out
- PassthroughException
void close() throws PassthroughException
PassthroughException
List<String> wildcard(String subPath) throws PassthroughException
PassthroughException
boolean mkdir() throws PassthroughException
PassthroughException
boolean rmdir() throws PassthroughException
PassthroughException
boolean changeDirectory(String path) throws PassthroughException
PassthroughException
String getModificationTime() throws PassthroughException
PassthroughException
List<String> list() throws PassthroughException
PassthroughException
List<String> listFull(boolean lsFormat) throws PassthroughException
PassthroughException
String fileFull(boolean lsFormat) throws PassthroughException
PassthroughException
long getFreeSpace() throws PassthroughException
PassthroughException
long getCRC() throws PassthroughException
PassthroughException
byte[] getMD5() throws PassthroughException
PassthroughException
byte[] getSHA1() throws PassthroughException
PassthroughException
Copyright © 2009–2019 Waarp. All rights reserved.