Class AssetFileWriter

java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
com.tianscar.assetfile.AssetFileWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class AssetFileWriter extends OutputStreamWriter
An OutputStreamWriter that packaging an AssetFileOutputStream for use.
  • Constructor Details

    • AssetFileWriter

      public AssetFileWriter(@NonNull String fileName) throws IOException
      Constructs an AssetFileWriter object given an assetFile name.
      Parameters:
      fileName - The assetFile name.
      Throws:
      IOException - If an I/O error occurred
    • AssetFileWriter

      public AssetFileWriter(@NonNull AssetFile file) throws IOException
      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

      public AssetFileWriter(@NonNull android.content.res.AssetFileDescriptor afd) throws IOException
      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