public class RandomAccessFileDataSource extends java.lang.Object implements DataSource
Constructor and Description |
---|
RandomAccessFileDataSource(java.io.RandomAccessFile file) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getFilePointer() |
int |
read(byte[] b) |
byte |
readByte() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
void |
seek(long pos) |
public RandomAccessFileDataSource(java.io.RandomAccessFile file)
public byte readByte() throws java.io.IOException
readByte
in interface DataSource
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface DataSource
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface DataSource
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface DataSource
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in interface DataSource
java.io.IOException
public void seek(long pos) throws java.io.IOException
seek
in interface DataSource
java.io.IOException
public long getFilePointer() throws java.io.IOException
getFilePointer
in interface DataSource
java.io.IOException
public void close() throws java.io.IOException
close
in interface DataSource
java.io.IOException
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.