android.content.res
Class AssetFileDescriptor.AutoCloseInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by android.os.ParcelFileDescriptor.AutoCloseInputStream
              extended by android.content.res.AssetFileDescriptor.AutoCloseInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
AssetFileDescriptor

public static class AssetFileDescriptor.AutoCloseInputStream
extends ParcelFileDescriptor.AutoCloseInputStream


Constructor Summary
AssetFileDescriptor.AutoCloseInputStream(AssetFileDescriptor fd)
           
 
Method Summary
 int available()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] buffer)
           
 int read(byte[] buffer, int offset, int count)
           
 void reset()
           
 long skip(long count)
           
 
Methods inherited from class android.os.ParcelFileDescriptor.AutoCloseInputStream
close
 
Methods inherited from class java.io.FileInputStream
finalize, getChannel, getFD
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetFileDescriptor.AutoCloseInputStream

public AssetFileDescriptor.AutoCloseInputStream(AssetFileDescriptor fd)
                                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int offset,
                int count)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

skip

public long skip(long count)
          throws java.io.IOException
Overrides:
skip in class java.io.FileInputStream
Throws:
java.io.IOException

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.InputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.InputStream

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.InputStream
Throws:
java.io.IOException


Copyright © 2008-2010. All Rights Reserved.