Top Description Constructors Methods
org.droidparts.dexmaker.dx.util

public final Class Writers

extends Object
Class Inheritance
Imports
java.io.PrintWriter, .Writer

Utilities for dealing with Writers.

Constructor Summary

AccessConstructor and Description
private
Writers()

This class is uninstantiable.

Method Summary

Modifier and TypeMethod and Description
public static PrintWriter

Returns:

non-null; an appropriate instance
printWriterFor
(Writer
non-null; writer to (possibly) wrap
writer
)

Makes a PrintWriter for the given Writer, returning the given writer if it already happens to be the right class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Writersback to summary
private Writers()

This class is uninstantiable.

Method Detail

printWriterForback to summary
public static PrintWriter printWriterFor(Writer writer)

Makes a PrintWriter for the given Writer, returning the given writer if it already happens to be the right class.

Parameters
writer:Writer

non-null; writer to (possibly) wrap

Returns:PrintWriter

non-null; an appropriate instance