Package com.tianscar.assetfile
Class AssetFileWriter
java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
com.tianscar.assetfile.AssetFileWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
An OutputStreamWriter that packaging an AssetFileOutputStream for use.
-
Constructor Summary
ConstructorDescriptionAssetFileWriter(android.content.res.AssetFileDescriptor afd)
Constructs an AssetFileWriter object associated with an asset file descriptor.AssetFileWriter(AssetFile file)
Constructs an AssetFileWriter object given an AssetFile object.AssetFileWriter(String fileName)
Constructs an AssetFileWriter object given an assetFile name. -
Method Summary
Methods inherited from class java.io.OutputStreamWriter
close, flush, getEncoding, write, write, write
-
Constructor Details
-
AssetFileWriter
Constructs an AssetFileWriter object given an assetFile name.- Parameters:
fileName
- The assetFile name.- Throws:
IOException
- If an I/O error occurred
-
AssetFileWriter
Constructs an AssetFileWriter object given an AssetFile object.- Parameters:
file
- an AssetFile object to write to.- Throws:
IOException
- If an I/O error occurred
-
AssetFileWriter
Constructs an AssetFileWriter object associated with an asset file descriptor.- Parameters:
afd
- AssetFileDescriptor object to write to.- Throws:
IOException
- If an I/O error occurred
-