|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwalker.FileManipulator
public class FileManipulator
Created by IntelliJ IDEA. User: andy Date: Mar 23, 2010 DEPRECATED! A singleton class responsible for splitting the wiseml file and mapping each subfile to virtual memory.
Field Summary | |
---|---|
static long |
SUB_FILE_SIZE
|
Method Summary | |
---|---|
ByteBufferBackedInputStream |
getBBBInputStream(int index)
Returns a byte buffer containing the requested subfile. |
java.util.zip.GZIPInputStream |
getGZIPBBBInputStream(int index)
|
static FileManipulator |
getInstance()
Returns an instance of this class. |
long |
getLength()
|
int |
getPageNumber()
|
void |
readFile()
Reads a wiseml file and splits it to pageNumber number of mapped byte buffers. |
void |
readPartFile(long startPosition,
long endPosition)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long SUB_FILE_SIZE
Method Detail |
---|
public ByteBufferBackedInputStream getBBBInputStream(int index)
index
- the number of the requested subfile.
public java.util.zip.GZIPInputStream getGZIPBBBInputStream(int index) throws java.io.IOException
java.io.IOException
public static FileManipulator getInstance()
public long getLength()
public int getPageNumber()
public void readFile() throws java.io.IOException
java.io.IOException
- is thrown in case of io problemspublic void readPartFile(long startPosition, long endPosition) throws java.io.FileNotFoundException
java.io.FileNotFoundException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |