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:
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 IOException
Throws:
IOException
Method Detail

available

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

read

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

read

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

read

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

skip

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

mark

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

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream

reset

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


Copyright © 2008-2012. All Rights Reserved.