org.jclarion.clarion.file
Class MemoryFile

java.lang.Object
  extended by org.jclarion.clarion.ClarionRandomAccessFile
      extended by org.jclarion.clarion.file.MemoryFile

public class MemoryFile
extends ClarionRandomAccessFile


Constructor Summary
MemoryFile()
           
MemoryFile(byte[] payload)
           
MemoryFile(byte[] content, int size)
           
MemoryFile(ClarionRandomAccessFile from)
           
MemoryFile(java.lang.String name)
           
 
Method Summary
 void close()
           
static java.lang.String copyFileIntoMemory(java.lang.String name)
           
 java.lang.String getName()
           
 MemoryFileSystem getPayload()
           
 long length()
           
 long position()
           
 int read(byte[] get_buffer, int i, int read)
           
 void seek(long l)
           
 void write(byte[] bytes, int i, int size)
           
 
Methods inherited from class org.jclarion.clarion.ClarionRandomAccessFile
getCharFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.