|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter com.bea.commerce.ebusiness.discount.util.DateWriter
@Deprecated public class DateWriter
This class prepends printed strings with a timestamp. NOT FULLY IMPLEMENTED!!! Currently only the println( String ), println( int) and println() methods have been implemented.
Field Summary | |
---|---|
protected String |
className
Deprecated |
static String |
colon
Deprecated |
static String |
space
Deprecated |
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
DateWriter(OutputStream out)
Deprecated |
|
DateWriter(OutputStream out,
boolean autoFlush)
Deprecated |
|
DateWriter(OutputStream out,
SimpleDateFormat format)
Deprecated |
|
DateWriter(OutputStream out,
SimpleDateFormat format,
boolean autoFlush)
Deprecated |
|
DateWriter(Writer writer)
Deprecated Creates DateWriter without autoflushing that uses the default format provided by the default SimpleDateFormat constructor. |
|
DateWriter(Writer writer,
boolean autoFlush)
Deprecated Creates DateWriter without autoflushing that uses the default format provided by the default SimpleDateFormat constructor. |
|
DateWriter(Writer writer,
SimpleDateFormat format)
Deprecated Creates DateWriter without autoflushing, using the specified date format. |
|
DateWriter(Writer writer,
SimpleDateFormat format,
boolean autoFlush)
Deprecated Creates DateWriter with autoflushing, using the specified date format. |
Method Summary | |
---|---|
String |
currentTime()
Deprecated |
void |
print(int x)
Deprecated Print a string and a timestamp if following a println() call otherwise print the string only. |
void |
print(String s)
Deprecated Print a string and a timestamp if following a println() call otherwise print the string only. |
void |
println()
Deprecated print a new line and no timestamp. |
void |
println(int x)
Deprecated print a string prepended with a timestamp and a space, terminate with a newline. |
void |
println(String s)
Deprecated print a string prepended with a timestamp and a space, terminate with a newline. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String space
public static final String colon
protected String className
Constructor Detail |
---|
public DateWriter(OutputStream out)
public DateWriter(OutputStream out, boolean autoFlush)
public DateWriter(OutputStream out, SimpleDateFormat format)
public DateWriter(OutputStream out, SimpleDateFormat format, boolean autoFlush)
public DateWriter(Writer writer)
SimpleDateFormat
public DateWriter(Writer writer, boolean autoFlush)
SimpleDateFormat
public DateWriter(Writer writer, SimpleDateFormat format)
public DateWriter(Writer writer, SimpleDateFormat format, boolean autoFlush)
Method Detail |
---|
public void print(String s)
print
in class PrintWriter
s
- The String
to be printedpublic void print(int x)
print
in class PrintWriter
s
- The String
to be printedpublic void println()
println
in class PrintWriter
public void println(String s)
println
in class PrintWriter
public void println(int x)
println
in class PrintWriter
public String currentTime()
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |