Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.io
Class PrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by oracle.adfnmc.java.io.Writer
          extended by oracle.adfnmc.java.io.PrintWriter
All Implemented Interfaces:
Closeable, Flushable

public class PrintWriter
extends Writer


Field Summary
static java.lang.Class CLASS_INSTANCE
           
 
Fields inherited from class oracle.adfnmc.java.io.Writer
lock
 
Constructor Summary
PrintWriter(java.io.OutputStream stream)
           
PrintWriter(java.io.OutputStream stream, boolean autoFlush)
           
PrintWriter(java.io.Writer wr)
          Constructs a new PrintWriter on the Writer wr.
PrintWriter(java.io.Writer wr, boolean autoflush)
          Constructs a new PrintWriter on the given writer.
 
Method Summary
 boolean checkError()
           
 void close()
          Close this Writer.
 void flush()
          Flush this Writer.
 void print(boolean bool)
           
 void print(char ch)
          Prints the String representation of the character parameter ch to the target Writer.
 void print(char[] charArray)
          Prints the String representation of the character array parameter charArray to the target Writer.
 void print(double dnum)
          Prints the String representation of the double parameter dnum to the target Writer.
 void print(float fnum)
          Prints the String representation of the float parameter fnum to the target Writer.
 void print(int inum)
          Prints the String representation of the int parameter inum to the target Writer.
 void print(long lnum)
          Prints the String representation of the long parameter lnum to the target Writer.
 void print(java.lang.Object obj)
           
 void print(java.lang.String x)
           
 void println()
           
 void println(boolean bool)
          Prints the String representation of the boolean parameter bool to the target Writer followed by the System property "line.separator".
 void println(char ch)
          Prints the String representation of the character parameter ch to the target Writer followed by the System property "line.separator".
 void println(char[] charArray)
          Prints the String representation of the character array parameter charArray to the target Writer followed by the System property "line.separator".
 void println(double dnum)
          Prints the String representation of the double parameter dnum to the target Writer followed by the System property "line.separator".
 void println(float fnum)
          Prints the String representation of the float parameter fnum to the target Writer followed by the System property "line.separator".
 void println(int inum)
          Prints the String representation of the int parameter inum to the target Writer followed by the System property "line.separator".
 void println(long lnum)
          Prints the String representation of the long parameter lnum to the target Writer followed by the System property "line.separator".
 void println(java.lang.Object obj)
          Prints the String representation of the Object parameter obj to the target Writer followed by the System property "line.separator".
 void println(java.lang.String x)
           
protected  void setError()
           
 void write(char[] buf)
          Writes the entire character buffer buf to this Writer.
 void write(char[] buffer, int offset, int length)
          Writes count characters starting at offset in buf to this Writer.
 void write(int oneChar)
          Writes the specified character oneChar to this Writer.
 void write(java.lang.String str)
          Writes the characters from the String str to this Writer.
 void write(java.lang.String str, int offset, int count)
          Writes count characters from the String str starting at offset to this Writer.
 
Methods inherited from class oracle.adfnmc.java.io.Writer
append
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE
Constructor Detail

PrintWriter

public PrintWriter(java.io.OutputStream stream)

PrintWriter

public PrintWriter(java.io.OutputStream stream,
                   boolean autoFlush)

PrintWriter

public PrintWriter(java.io.Writer wr)
Constructs a new PrintWriter on the Writer wr. All writes to the target can now take place through this PrintWriter. By default, the PrintWriter is set to not autoflush when println() is called.

Parameters:
wr - the Writer to provide convenience methods on.

PrintWriter

public PrintWriter(java.io.Writer wr,
                   boolean autoflush)
Constructs a new PrintWriter on the given writer. All writes to the target can now take place through this PrintWriter. By default, the PrintWriter is set to not autoflush when println() is called.

Parameters:
wr - the Writer to provide convenience methods on.
autoflush - whether to flush when println() is called.
Method Detail

close

public void close()
Description copied from class: Writer
Close this Writer. This must be implemented by any concrete subclasses. The implementation should free any resources associated with the Writer.

Specified by:
close in interface Closeable
Specified by:
close in class Writer

flush

public void flush()
Description copied from class: Writer
Flush this Writer. This must be implemented by any concrete subclasses. The implementation should ensure all buffered characters are written out.

Specified by:
flush in interface Flushable
Specified by:
flush in class Writer

write

public void write(char[] buffer,
                  int offset,
                  int length)
Description copied from class: Writer
Writes count characters starting at offset in buf to this Writer. This abstract method must be implemented by concrete subclasses.

Specified by:
write in class Writer
Parameters:
buffer - the non-null array containing characters to write.
offset - offset in buf to retrieve characters
length - maximum number of characters to write

write

public void write(java.lang.String str)
Description copied from class: Writer
Writes the characters from the String str to this Writer.

Overrides:
write in class Writer
Parameters:
str - the non-null String containing the characters to write.

write

public void write(char[] buf)
Description copied from class: Writer
Writes the entire character buffer buf to this Writer.

Overrides:
write in class Writer
Parameters:
buf - the non-null array containing characters to write.

print

public void print(java.lang.String x)

print

public void print(char[] charArray)
Prints the String representation of the character array parameter charArray to the target Writer.

Parameters:
charArray - the character array to print on this Writer.

println

public void println(java.lang.String x)

println

public void println()

setError

protected void setError()

checkError

public boolean checkError()

print

public void print(boolean bool)

print

public void print(java.lang.Object obj)

print

public void print(double dnum)
Prints the String representation of the double parameter dnum to the target Writer.

Parameters:
dnum - the double to print on this Writer.

print

public void print(float fnum)
Prints the String representation of the float parameter fnum to the target Writer.

Parameters:
fnum - the float to print on this Writer.

print

public void print(int inum)
Prints the String representation of the int parameter inum to the target Writer.

Parameters:
inum - the int to print on this Writer.

print

public void print(long lnum)
Prints the String representation of the long parameter lnum to the target Writer.

Parameters:
lnum - the long to print on this Writer.

println

public void println(char[] charArray)
Prints the String representation of the character array parameter charArray to the target Writer followed by the System property "line.separator".

Parameters:
charArray - the character array to print on this Writer.

print

public void print(char ch)
Prints the String representation of the character parameter ch to the target Writer.

Parameters:
ch - the character to print on this Writer.

write

public void write(int oneChar)
Description copied from class: Writer
Writes the specified character oneChar to this Writer. This implementation writes the low order two bytes of oneChar to the Stream.

Overrides:
write in class Writer
Parameters:
oneChar - The character to write

println

public void println(char ch)
Prints the String representation of the character parameter ch to the target Writer followed by the System property "line.separator".

Parameters:
ch - the character to print on this Writer.

println

public void println(double dnum)
Prints the String representation of the double parameter dnum to the target Writer followed by the System property "line.separator".

Parameters:
dnum - the double to print on this Writer.

println

public void println(float fnum)
Prints the String representation of the float parameter fnum to the target Writer followed by the System property "line.separator".

Parameters:
fnum - the float to print on this Writer.

println

public void println(int inum)
Prints the String representation of the int parameter inum to the target Writer followed by the System property "line.separator".

Parameters:
inum - the int to print on this Writer.

println

public void println(long lnum)
Prints the String representation of the long parameter lnum to the target Writer followed by the System property "line.separator".

Parameters:
lnum - the long to print on this Writer.

println

public void println(java.lang.Object obj)
Prints the String representation of the Object parameter obj to the target Writer followed by the System property "line.separator".

Parameters:
obj - the Object to print on this Writer.

println

public void println(boolean bool)
Prints the String representation of the boolean parameter bool to the target Writer followed by the System property "line.separator".

Parameters:
bool - the boolean to print on this Writer.

write

public void write(java.lang.String str,
                  int offset,
                  int count)
Writes count characters from the String str starting at offset to this Writer.

Overrides:
write in class Writer
Parameters:
str - the non-null String containing the characters to write.
offset - where in str to get chars from.
count - how many characters to write.
Throws:
java.lang.ArrayIndexOutOfBoundsException - If offset or count are outside of bounds.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.