android.os
Class MemoryFile

java.lang.Object
  extended by android.os.MemoryFile

public class MemoryFile
extends java.lang.Object


Constructor Summary
MemoryFile(java.lang.String name, int length)
           
 
Method Summary
 boolean allowPurging(boolean allowPurging)
           
 void close()
           
protected  void finalize()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 boolean isPurgingAllowed()
           
 int length()
           
 int readBytes(byte[] buffer, int srcOffset, int destOffset, int count)
           
 void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryFile

public MemoryFile(java.lang.String name,
                  int length)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

length

public int length()

isPurgingAllowed

public boolean isPurgingAllowed()

allowPurging

public boolean allowPurging(boolean allowPurging)
                     throws java.io.IOException
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()

getOutputStream

public java.io.OutputStream getOutputStream()

readBytes

public int readBytes(byte[] buffer,
                     int srcOffset,
                     int destOffset,
                     int count)
              throws java.io.IOException
Throws:
java.io.IOException

writeBytes

public void writeBytes(byte[] buffer,
                       int srcOffset,
                       int destOffset,
                       int count)
                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008-2010. All Rights Reserved.