@Deprecated public interface FileAccess extends Dataset
Dataset.DatasetType| Modifier and Type | Method and Description |
|---|---|
void |
addFile(String filename,
String permissions)
Deprecated.
Adds a file with the specified permission "r", "w" or "rw" to this
dataset.
|
Enumeration<Object> |
getFilenames()
Deprecated.
Retrieves the list of files in this dataset
|
long |
getPosition(String fileName)
Deprecated.
Retrieves the position of filePointer for the given dataset
|
boolean |
isPartOfDataset(String fileName)
Deprecated.
Checks to see if the file is part of a given dataset
|
int |
read(String filename,
byte[] bytesToRead)
Deprecated.
Attempts to read a set of bytes from the underlying file.
|
int |
read(String fileName,
ByteBuffer readBuffer)
Deprecated.
Attempts to read a set of bytes from the underlying file.
|
void |
removeFile(String filename)
Deprecated.
Removes a file from this dataset.
|
void |
setPosition(String fileName,
long newPosition)
Deprecated.
Sets the position of filePointer for one of the file in the given
dataset.
|
long |
size(String fileName)
Deprecated.
Returns the current size of the file in question
|
int |
write(String fileName,
byte[] bytesToWrite)
Deprecated.
Writes a byte[] to a give file.
|
int |
write(String fileName,
ByteBuffer writeBuffer)
Deprecated.
Write the specified Buffer to the file corresponding to the specified
file.
|
close, getDataAvailabilityNotifier, getDatasetIdentifier, getDatasetType, getDescription, getLastModificationTime, initializeDataset, isAvailable, isDataAvailable, isInitialized, supportsDataAvailabilityNotificationsboolean isPartOfDataset(String fileName)
fileName - The name of the filetrue if the file is a part of the dataset;
false otherwise.long size(String fileName) throws DatasetException, IOException
fileName - The name of the fileDatasetException - If there are problems retrieving the FileChannel
corresponding to the fileIOException - If there are IO problems in completing the operation.long getPosition(String fileName) throws DatasetException, IOException
fileName - The name of the file.DatasetException - If there are problems retrieving the FileChannel
corresponding to the fileIOException - If there are IO problems in performing the operationvoid setPosition(String fileName, long newPosition) throws DatasetException, IOException
fileName - The filenewPosition - The new position for the pointerDatasetException - If there are problems retrieving the FileChannel
corresponding to the fileIOException - If there are IO problems in performing the operationint read(String filename, byte[] bytesToRead) throws DatasetException, IOException
filename - The file to be readbytesToRead - The byte[] to be read intoDatasetException - If there are problems retrieving the FileChannel
corresponding to the fileIOException - If there are IO problems in performing the operationint read(String fileName, ByteBuffer readBuffer) throws DatasetException, IOException
fileName - The file to be readreadBuffer - The buffer to be read intoDatasetException - If there are problems retrieving the FileChannel
corresponding to the fileIOException - If there are IO problems in performing the operationint write(String fileName, ByteBuffer writeBuffer) throws DatasetException, IOException
fileName - The file to be written towriteBuffer - The buffer holding the bytes to be writtenDatasetException - If there are problems retrieving the FileChannel
corresponding to the fileIOException - If there are IO problems in performing the operationint write(String fileName, byte[] bytesToWrite) throws DatasetException, IOException
fileName - The file to be written tobytesToWrite - The byte[] to be written.DatasetException - If there are problems retrieving the FileChannel
corresponding to the fileIOException - If there are IO problems in performing the operationvoid addFile(String filename, String permissions) throws DatasetException
filename - The name of the filepermissions - The permissions associated with this fileNullPointerException - If the specified filename is NULLDatasetException - If there are problems adding this filevoid removeFile(String filename) throws DatasetException
filename - The name of the fileNullPointerException - If the specified filename is NULLDatasetException - If there are problems removing this fileEnumeration<Object> getFilenames()
Copyright © 2015. All rights reserved.