public class CSDKFile extends Object implements csdk.v2.api.filesystem.IFile
| Constructor and Description |
|---|
CSDKFile(csbase.logic.ClientFile file)
Construtor
|
| Modifier and Type | Method and Description |
|---|---|
csdk.v2.api.filesystem.IFileLock |
acquireExclusiveLock(Window window) |
csdk.v2.api.filesystem.IFileLock |
acquireSharedLock(Window window) |
boolean |
canExecute() |
boolean |
canRead() |
boolean |
canWrite() |
void |
close()
Fecha o arquivo.
|
void |
close(boolean force) |
boolean |
exists() |
csdk.v2.api.filesystem.IFile[] |
getChildren() |
csbase.logic.ClientFile |
getFile()
Obtém o arquivo encapsulado.
|
csdk.v2.api.filesystem.FileLocationType |
getFileLocationType() |
InputStream |
getInputStream() |
long |
getModificationDate() |
String |
getName() |
OutputStream |
getOutputStream() |
csdk.v2.api.filesystem.IFile |
getParent() |
String[] |
getPath() |
String |
getStringPath() |
String |
getType() |
boolean |
isDirectory() |
void |
open(boolean readOnly) |
long |
position() |
void |
position(long newPosition) |
int |
read(byte[] dst,
int off,
int len,
long position) |
int |
read(byte[] dst,
long position) |
long |
size() |
void |
write(byte[] src,
int off,
int len,
long position) |
void |
write(byte[] src,
long position) |
public CSDKFile(csbase.logic.ClientFile file)
file - arquivo encapsulado.public void close(boolean force)
throws IOException
close in interface csdk.v2.api.filesystem.IFileIOExceptionpublic void close()
throws IOException
IOException - em caso de erro de I/O.public csdk.v2.api.filesystem.IFile[] getChildren()
throws Exception
getChildren in interface csdk.v2.api.filesystem.IFileExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface csdk.v2.api.filesystem.IFileIOExceptionpublic long getModificationDate()
getModificationDate in interface csdk.v2.api.filesystem.IFilepublic String getName()
getName in interface csdk.v2.api.filesystem.IFilepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface csdk.v2.api.filesystem.IFileIOExceptionpublic String[] getPath()
getPath in interface csdk.v2.api.filesystem.IFilepublic String getStringPath()
getStringPath in interface csdk.v2.api.filesystem.IFilepublic String getType()
getType in interface csdk.v2.api.filesystem.IFilepublic boolean isDirectory()
isDirectory in interface csdk.v2.api.filesystem.IFilepublic void open(boolean readOnly)
throws Exception
open in interface csdk.v2.api.filesystem.IFileExceptionpublic long position()
throws IOException
position in interface csdk.v2.api.filesystem.IFileIOExceptionpublic void position(long newPosition)
throws IOException
position in interface csdk.v2.api.filesystem.IFileIOExceptionpublic int read(byte[] dst,
int off,
int len,
long position)
throws Exception
read in interface csdk.v2.api.filesystem.IFileExceptionpublic int read(byte[] dst,
long position)
throws Exception
read in interface csdk.v2.api.filesystem.IFileExceptionpublic long size()
size in interface csdk.v2.api.filesystem.IFilepublic void write(byte[] src,
int off,
int len,
long position)
throws IOException,
csdk.v2.api.filesystem.FileLockedException
write in interface csdk.v2.api.filesystem.IFileIOExceptioncsdk.v2.api.filesystem.FileLockedExceptionpublic void write(byte[] src,
long position)
throws IOException,
csdk.v2.api.filesystem.FileLockedException
write in interface csdk.v2.api.filesystem.IFileIOExceptioncsdk.v2.api.filesystem.FileLockedExceptionpublic csdk.v2.api.filesystem.FileLocationType getFileLocationType()
getFileLocationType in interface csdk.v2.api.filesystem.IFilepublic csbase.logic.ClientFile getFile()
public csdk.v2.api.filesystem.IFile getParent()
getParent in interface csdk.v2.api.filesystem.IFilepublic boolean exists()
throws IOException
exists in interface csdk.v2.api.filesystem.IFileIOExceptionpublic boolean canExecute()
canExecute in interface csdk.v2.api.filesystem.IFilepublic boolean canRead()
canRead in interface csdk.v2.api.filesystem.IFilepublic boolean canWrite()
canWrite in interface csdk.v2.api.filesystem.IFilepublic csdk.v2.api.filesystem.IFileLock acquireExclusiveLock(Window window) throws Exception
acquireExclusiveLock in interface csdk.v2.api.filesystem.IFileExceptionCopyright © 2016. All rights reserved.