Java.IO.Writer Class
The base class for all writers.

See Also: Writer Members


[Android.Runtime.Register("java/io/Writer", DoNotGenerateAcw=true)]
public abstract class Writer : Java.Lang.Object, ICloseable, IFlushable, Java.Lang.IAppendable, IDisposable


The base class for all writers. A writer is a means of writing data to a target in a character-wise manner. Most output streams expect the Writer.Flush method to be called before closing the stream, to ensure all data is actually written out.

This abstract class does not provide a fully working implementation, so it needs to be subclassed, and at least the Writer.Write(Char[], System.Int32, System.Int32), Writer.Close and Writer.Flush methods needs to be overridden. Overriding some of the non-abstract methods is also often advised, since it might result in higher efficiency.

Many specialized readers for purposes like reading from a file already exist in this package.

See Also

[Android Documentation]


Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 1