
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
PassthroughExceptionint write(io.netty.buffer.ByteBuf buffer)
throws PassthroughException
PassthroughExceptionlong length()
boolean canRead()
boolean canWrite()
boolean isInReading()
boolean isInWriting()
boolean exists()
boolean delete()
throws PassthroughException
PassthroughExceptionboolean renameTo(String path) throws PassthroughException
PassthroughExceptionvoid position(long position)
throws PassthroughException
PassthroughExceptionvoid flush()
throws PassthroughException
PassthroughExceptionlong transferTo(FileChannel out) throws PassthroughException
out - PassthroughExceptionvoid close()
throws PassthroughException
PassthroughExceptionList<String> wildcard(String subPath) throws PassthroughException
PassthroughExceptionboolean mkdir()
throws PassthroughException
PassthroughExceptionboolean rmdir()
throws PassthroughException
PassthroughExceptionboolean changeDirectory(String path) throws PassthroughException
PassthroughExceptionString getModificationTime() throws PassthroughException
PassthroughExceptionList<String> list() throws PassthroughException
PassthroughExceptionList<String> listFull(boolean lsFormat) throws PassthroughException
PassthroughExceptionString fileFull(boolean lsFormat) throws PassthroughException
PassthroughExceptionlong getFreeSpace()
throws PassthroughException
PassthroughExceptionlong getCRC()
throws PassthroughException
PassthroughExceptionbyte[] getMD5()
throws PassthroughException
PassthroughExceptionbyte[] getSHA1()
throws PassthroughException
PassthroughExceptionCopyright © 2009–2019 Waarp. All rights reserved.