org.jclarion.clarion.file
Class MemoryFile
java.lang.Object
org.jclarion.clarion.ClarionRandomAccessFile
org.jclarion.clarion.file.MemoryFile
public class MemoryFile
- extends ClarionRandomAccessFile
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryFile
public MemoryFile()
MemoryFile
public MemoryFile(java.lang.String name)
MemoryFile
public MemoryFile(byte[] payload)
MemoryFile
public MemoryFile(byte[] content,
int size)
MemoryFile
public MemoryFile(ClarionRandomAccessFile from)
copyFileIntoMemory
public static java.lang.String copyFileIntoMemory(java.lang.String name)
getPayload
public MemoryFileSystem getPayload()
close
public void close()
throws java.io.IOException
- Specified by:
close in class ClarionRandomAccessFile
- Throws:
java.io.IOException
length
public long length()
throws java.io.IOException
- Specified by:
length in class ClarionRandomAccessFile
- Throws:
java.io.IOException
read
public int read(byte[] get_buffer,
int i,
int read)
throws java.io.IOException
- Specified by:
read in class ClarionRandomAccessFile
- Throws:
java.io.IOException
seek
public void seek(long l)
throws java.io.IOException
- Specified by:
seek in class ClarionRandomAccessFile
- Throws:
java.io.IOException
write
public void write(byte[] bytes,
int i,
int size)
throws java.io.IOException
- Specified by:
write in class ClarionRandomAccessFile
- Throws:
java.io.IOException
getName
public java.lang.String getName()
- Specified by:
getName in class ClarionRandomAccessFile
position
public long position()
throws java.io.IOException
- Specified by:
position in class ClarionRandomAccessFile
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.