| java.lang.Object org.apache.harmony.luni.platform.OSComponent org.apache.harmony.luni.platform.OSFileSystem
OSFileSystem | class OSFileSystem extends OSComponent implements IFileSystem(Code) | | This is the portable implementation of the file system interface.
|
Method Summary | |
public void | close(long fileDescriptor) | public void | fflush(long fileDescriptor, boolean metadata) | native public int | getAllocGranularity() Returns the granularity for virtual memory allocation. | public boolean | lock(long fileDescriptor, long start, long length, int type, boolean waitFlag) | public long | open(byte[] fileName, int mode) | public long | read(long fileDescriptor, byte[] bytes, int offset, int length) | public long | readDirect(long fileDescriptor, long address, int offset, int length) | public long | readv(long fileDescriptor, long[] addresses, int[] offsets, int[] lengths, int size) | public long | seek(long fileDescriptor, long offset, int whence) | public long | transfer(long fileHandler, FileDescriptor socketDescriptor, long offset, long count) | public void | truncate(long fileDescriptor, long size) | public long | ttyAvailable() | public long | ttyRead(byte[] bytes, int offset, int length) | public void | unlock(long fileDescriptor, long start, long length) | public long | write(long fileDescriptor, byte[] bytes, int offset, int length) | public long | writeDirect(long fileDescriptor, long address, int offset, int length) | public long | writev(long fileDescriptor, long[] addresses, int[] offsets, int[] lengths, int size) |
OSFileSystem | public OSFileSystem()(Code) | | |
fflush | public void fflush(long fileDescriptor, boolean metadata) throws IOException(Code) | | |
getAllocGranularity | native public int getAllocGranularity() throws IOException(Code) | | Returns the granularity for virtual memory allocation.
Note that this value for Windows differs from the one for the
page size (64K and 4K respectively).
|
lock | public boolean lock(long fileDescriptor, long start, long length, int type, boolean waitFlag) throws IOException(Code) | | |
read | public long read(long fileDescriptor, byte[] bytes, int offset, int length) throws IOException(Code) | | |
readDirect | public long readDirect(long fileDescriptor, long address, int offset, int length) throws IOException(Code) | | |
readv | public long readv(long fileDescriptor, long[] addresses, int[] offsets, int[] lengths, int size) throws IOException(Code) | | |
seek | public long seek(long fileDescriptor, long offset, int whence) throws IOException(Code) | | |
transfer | public long transfer(long fileHandler, FileDescriptor socketDescriptor, long offset, long count) throws IOException(Code) | | |
truncate | public void truncate(long fileDescriptor, long size) throws IOException(Code) | | |
ttyRead | public long ttyRead(byte[] bytes, int offset, int length) throws IOException(Code) | | |
unlock | public void unlock(long fileDescriptor, long start, long length) throws IOException(Code) | | |
write | public long write(long fileDescriptor, byte[] bytes, int offset, int length) throws IOException(Code) | | |
writeDirect | public long writeDirect(long fileDescriptor, long address, int offset, int length) throws IOException(Code) | | |
writev | public long writev(long fileDescriptor, long[] addresses, int[] offsets, int[] lengths, int size) throws IOException(Code) | | |
|
|