Package com.tianscar.assetfile
Class AssetFileReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
com.tianscar.assetfile.AssetFileReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
An InputStreamReader that packaging an AssetFileInputStream for use.
-
Constructor Summary
ConstructorDescriptionAssetFileReader(android.content.res.AssetFileDescriptor afd)
Creates a new AssetFileReader, given the AssetFileDescriptor to read from.AssetFileReader(AssetFile file)
Creates a new AssetFileReader, given the AssetFile to read from.AssetFileReader(String fileName)
Creates a new AssetFileReader, given the name of the assetFile to read from. -
Method Summary
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
-
Constructor Details
-
AssetFileReader
Creates a new AssetFileReader, given the name of the assetFile to read from.- Parameters:
fileName
- the name of the assetFile to read from- Throws:
IOException
- If an I/O error occurred
-
AssetFileReader
Creates a new AssetFileReader, given the AssetFile to read from.- Parameters:
file
- the AssetFile to read from- Throws:
IOException
- If an I/O error occurred
-
AssetFileReader
Creates a new AssetFileReader, given the AssetFileDescriptor to read from.- Parameters:
afd
- the AssetFileDescriptor to read from- Throws:
IOException
- If an I/O error occurred
-