public interface FileConnection extends StreamConnection
Modifier and Type | Method and Description |
---|---|
long |
availableSize() |
boolean |
canRead() |
boolean |
canWrite() |
void |
create() |
void |
delete() |
long |
directorySize(boolean includeSubDirs) |
boolean |
exists() |
long |
fileSize() |
String |
getName() |
String |
getPath() |
String |
getURL() |
boolean |
isDirectory() |
boolean |
isHidden() |
boolean |
isOpen() |
long |
lastModified() |
Enumeration |
list() |
Enumeration |
list(String filter,
boolean includeHidden) |
void |
mkdir() |
DataInputStream |
openDataInputStream() |
DataOutputStream |
openDataOutputStream() |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
OutputStream |
openOutputStream(long byteOffset) |
void |
rename(String newName) |
void |
setFileConnection(String s) |
void |
setHidden(boolean hidden) |
void |
setReadable(boolean readable) |
void |
setWritable(boolean writable) |
long |
totalSize() |
void |
truncate(long byteOffset) |
long |
usedSize() |
close
boolean isOpen()
InputStream openInputStream() throws IOException
openInputStream
in interface InputConnection
IOException
DataInputStream openDataInputStream() throws IOException
openDataInputStream
in interface InputConnection
IOException
OutputStream openOutputStream() throws IOException
openOutputStream
in interface OutputConnection
IOException
DataOutputStream openDataOutputStream() throws IOException
openDataOutputStream
in interface OutputConnection
IOException
OutputStream openOutputStream(long byteOffset) throws IOException
IOException
long totalSize()
long availableSize()
long usedSize()
long directorySize(boolean includeSubDirs) throws IOException
IOException
long fileSize() throws IOException
IOException
boolean canRead()
boolean canWrite()
boolean isHidden()
void setReadable(boolean readable) throws IOException
IOException
void setWritable(boolean writable) throws IOException
IOException
void setHidden(boolean hidden) throws IOException
IOException
Enumeration list() throws IOException
IOException
Enumeration list(String filter, boolean includeHidden) throws IOException
IOException
void create() throws IOException
IOException
void mkdir() throws IOException
IOException
boolean exists()
boolean isDirectory()
void delete() throws IOException
IOException
void rename(String newName) throws IOException
IOException
void truncate(long byteOffset) throws IOException
IOException
void setFileConnection(String s) throws IOException
IOException
String getName()
String getPath()
String getURL()
long lastModified()