|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.JHDLOutput
A utility class useful for managing messages in JHDL.
Messages generated within JHDL are directed to various streams of a named JHDLOutput object. Common streams are: "default", for general comments; "builder", for messages related to building the JHDL circuit; "simulator", for messages related to simulation; "netlister", for messages during the netlist process; "checkpoint" for messages related to circuit checkpointing and readback; and "jab", for messages that relate to the graphical brower JAB.
Each JHDLOutput is made up of multiple streams; messages printed to the various streams can be directed to the same location or to different locations. The streams available are: debug, for debug messages during development; notice, for notification of deprecated method calls or alternative syntax; status, for tracking status during long algorithms; warning, when a problem is detected but is not fatal; and error, when a problem can have fatal results to the operation of JHDL.
Field Summary | |
JHDLPrintWriter |
debug
The debug stream, for posting debug comments; defaults to disabled |
static int |
DEBUG
|
JHDLPrintWriter |
error
The error stream, for reporting fatal errors; should default to System.err |
static int |
ERROR
|
static int |
NOTE
|
JHDLPrintWriter |
notice
The notice stream, for posting notices (such as deprecations); defaults to System.out |
static int |
NOTICE
|
static int |
NOTIFICATION
|
static int |
NOTIFY
|
static int |
NUMBER_OF_PRINTWRITER_IDENTIFIERS
|
JHDLPrintWriter |
status
The status stream, for reporting status (such as during long operations, or to get the values of certain variables); defaults to System.out |
static int |
STATUS
|
static int |
WARN
|
JHDLPrintWriter |
warning
The warning stream, for reporting non-fatal warnings; defaults to System.out |
static int |
WARNING
|
Method Summary | |
void |
disableAllJHDLPrintWriters()
|
void |
enableAllJHDLPrintWriters()
|
static JHDLOutput |
getJHDLOutput()
Returns a JHDLOutput identified as "default" . |
static JHDLOutput |
getJHDLOutput(java.lang.String name)
Returns the requested instance of JHDLOutput , identified by a string. |
static java.lang.String[] |
getJHDLOutputNames()
Returns an array with all the JHDLOutput<\code> object names currently created. |
JHDLPrintWriter |
getJHDLPrintWriter(int jhdlPrintWriterID)
Returns the JHDLPrintWriter that correlates with jhdlPrintWriterID . |
static int |
getJHDLPrintWriterIdentifier(java.lang.String jhdlPrintWriterName)
|
static java.lang.String |
getJHDLPrintWriterName(int jhdlPrintWriterID)
A convenience method for debug messages |
static boolean |
isAvailable(java.lang.String name)
Tells whether or not a JHDLOutput with a specific name has been created. |
static void |
parseLine(java.lang.String line)
|
boolean |
redirect(int jhdlPrintWriterID)
Redirects the JHDLPrintWriter instance identified by
jhdlPrintWriterID to null. |
boolean |
redirect(int jhdlPrintWriterID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance identified by
jhdlPrintWriterID to outputStream . |
boolean |
redirect(int jhdlPrintWriterID,
java.io.OutputStream outputStream,
boolean autoFlush)
Redirects the JHDLPrintWriter instance identified by
jhdlPrintWriterID to outputStream . |
boolean |
redirect(int jhdlPrintWriterID,
java.io.Writer outputWriter)
Redirects the JHDLPrintWriter instance identified by
jhdlPrintWriterID to a Writer . |
boolean |
redirect(int jhdlPrintWriterID,
java.io.Writer outputStream,
boolean autoFlush)
Redirects the JHDLPrintWriter instance identified by
jhdlPrintWriterID to a Writer . |
static boolean |
redirect(java.lang.String jhdlOutputID,
int jhdlPrintWriterID)
Redirects the OutputStream for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput (i.e., "jab"
or "simulator") to null. |
static boolean |
redirect(java.lang.String jhdlOutputID,
int jhdlPrintWriterID,
java.io.OutputStream outputStream)
Redirects the OutputStream for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput (i.e., "jab"
or "simulator") to the OutputStream object passed by the caller. |
static boolean |
redirect(java.lang.String jhdlOutputID,
int jhdlPrintWriterID,
java.io.OutputStream outputStream,
boolean autoFlush)
Redirects the OutputStream for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput (i.e., "jab"
or "simulator") to the OutputStream object passed by the caller. |
static boolean |
redirect(java.lang.String jhdlOutputID,
int jhdlPrintWriterID,
java.io.Writer outputStream)
Redirects the OutputStream for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput (i.e., "jab"
or "simulator") to the Writer object passed by the caller. |
static boolean |
redirect(java.lang.String jhdlOutputID,
int jhdlPrintWriterID,
java.io.Writer outputStream,
boolean autoFlush)
Redirects the OutputStream for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput (i.e., "jab"
or "simulator") to the Writer object passed by the caller. |
boolean |
redirectAll(java.io.OutputStream outputStream)
Redirects all JHDLPrintWriter instances across the JHDLOutput instance from
which it is called to outputStream . |
static boolean |
redirectAll(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects all JHDLPrintWriter instances within the JHDLOutput identified
by jhdlOutputID to outputStream . |
static boolean |
redirectAll(java.lang.String jhdlOutputID,
java.io.Writer outputStream)
Redirects all JHDLPrintWriter instances within the JHDLOutput identified
by jhdlOutputID to a Writer . |
boolean |
redirectAll(java.io.Writer outputStream)
Redirects all JHDLPrintWriter instances across the JHDLOutput instance from
which it is called to outputStream . |
static boolean |
redirectAllJHDLOutputs(java.io.OutputStream outputStream)
Redirects all JHDLPrintWriter instances across all JHDLOutput instances to
outputStream . |
static boolean |
redirectAllJHDLOutputs(java.io.Writer outputStream)
Redirects all JHDLPrintWriter instances across all JHDLOutput instances to
a Writer . |
boolean |
redirectDebug(java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named debug to the
given OutputStream . |
static boolean |
redirectDebug(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named debug to the
given OutputStream . |
boolean |
redirectErr(java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named error to the
given OutputStream . |
static boolean |
redirectErr(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named error to the
given OutputStream . |
boolean |
redirectError(java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named error to the
given OutputStream . |
static boolean |
redirectError(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named error to the
given OutputStream . |
boolean |
redirectNotice(java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named notice to the
given OutputStream . |
static boolean |
redirectNotice(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named notice to the
given OutputStream . |
boolean |
redirectNotify(java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named notice to the
given OutputStream . |
static boolean |
redirectNotify(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named notice to the
given OutputStream . |
boolean |
redirectStatus(java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named status to the
given OutputStream . |
static boolean |
redirectStatus(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named status to the
given OutputStream . |
boolean |
redirectWarn(java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named warning to the
given OutputStream . |
static boolean |
redirectWarn(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named warning to the
given OutputStream . |
boolean |
redirectWarning(java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named warning to the
given OutputStream . |
static boolean |
redirectWarning(java.lang.String jhdlOutputID,
java.io.OutputStream outputStream)
Redirects the JHDLPrintWriter instance named warning to the
given OutputStream . |
static boolean |
setAllJHDLOutputsToConsole()
This method sets all JHDLPrintWriter 's in all existing JHDLOutput
objects to print to System.out . |
static boolean |
setAllJHDLOutputsToFile(java.lang.String fileName)
Sets all JHDLPrintWriter instances in all existing JHDLOutput
instances to print to the file named fileName . |
static boolean |
setAllJHDLOutputsToNothing()
Disables all JHDLPrintWriter s in all JHDLOutput s. |
boolean |
setAllToConsole()
Set all streams of this JHDLPrintWriter to System.out . |
static boolean |
setAllToConsole(java.lang.String jhdlOutputID)
Sets all JHDLPrintWriter 's in the JHDLOutput instance
referenced in the JHDLOutputs hashtable by the jhdlOutputID
key to System.out . |
boolean |
setAllToFile(java.lang.String fileName)
Sets all JHDLPrintWriter instances in this JHDLOutput object
to the given fileName . |
static boolean |
setAllToFile(java.lang.String jhdlOutputID,
java.lang.String fileName)
Redirects all JHDLPrintWriter objects for the given jhdlOutputID
to the file named fileName . |
boolean |
setAllToNothing()
Redirects all JHDLPrintWriter instances in this instance of
JHDLOutput to null. |
static boolean |
setAllToNothing(java.lang.String jhdlOutputID)
Sets all of the JHDLPrintWriter instances in the named JHDLOutput
to not print. |
void |
setDefaultDebugJHDLPrintWriter(JHDLPrintWriter passed)
|
void |
setDefaultDebugOutputStream(java.io.OutputStream passedStream)
|
void |
setDefaultErrorJHDLPrintWriter(JHDLPrintWriter passed)
|
void |
setDefaultErrorOutputStream(java.io.OutputStream passedStream)
|
void |
setDefaultJHDLPrintWriter(int jhdlPrintWriterID,
JHDLPrintWriter passed)
|
void |
setDefaultJHDLPrintWriter(int jhdlPrintWriterID,
java.io.OutputStream passedStream)
|
void |
setDefaultNoticeJHDLPrintWriter(JHDLPrintWriter passed)
|
void |
setDefaultNoticeOutputStream(java.io.OutputStream passedStream)
|
void |
setDefaultOutputStream(int jhdlPrintWriterID,
java.io.OutputStream passedStream)
|
void |
setDefaultStatusJHDLPrintWriter(JHDLPrintWriter passed)
|
void |
setDefaultStatusOutputStream(java.io.OutputStream passedStream)
|
void |
setDefaultWarningJHDLPrintWriter(JHDLPrintWriter passed)
|
void |
setDefaultWarningOutputStream(java.io.OutputStream passedStream)
|
boolean |
setJHDLPrintWriter(int jhdlPrintWriterID,
JHDLPrintWriter passedJHDLPrintWriter)
Based on the jhdlPrintWriterID passed to this method, it will set the
correlating JHDLPrintWriter reference to passedJHDLPrintWriter . |
boolean |
setToConsole(int jhdlPrintWriterID)
Set the local instance of the JHDLPrintWriter identified by
jhdlPrintWriterID to System.out . |
static boolean |
setToConsole(java.lang.String jhdlOutputID,
int jhdlPrintWriterID)
Sets the JHDLPrintWriter identified by jhdlPrintWriterID in the
named JHDLOutput to System.out . |
boolean |
setToFile(int jhdlPrintWriterID,
java.lang.String fileName)
Sets the JHDLPrintWriter object identified by jhdlPrintWriterID in this instance of JHDLOutput to the given fileName. |
static boolean |
setToFile(java.lang.String jhdlOutputID,
int jhdlPrintWriterID,
java.lang.String fileName)
Sets the JHDLPrintWriter identified by jhdlPrintWriterID in the
named JHDLOutput to a file named fileName . |
boolean |
setToNothing(int jhdlPrintWriterID)
Sets the instance of JHDLPrintWriter identified by
jhdlPrintWriterID to null. |
static boolean |
setToNothing(java.lang.String jhdlOutputID,
int jhdlPrintWriterID)
Sets the JHDLPrintWriter identified by jhdlPrintWriterID in
the named JHDLOutput to not print. |
java.lang.String |
toString()
Provides information about the JHDLOutput object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ERROR
public static final int WARNING
public static final int WARN
public static final int NOTIFICATION
public static final int NOTIFY
public static final int NOTICE
public static final int NOTE
public static final int DEBUG
public static final int STATUS
public static final int NUMBER_OF_PRINTWRITER_IDENTIFIERS
public JHDLPrintWriter error
public JHDLPrintWriter warning
public JHDLPrintWriter notice
public JHDLPrintWriter status
public JHDLPrintWriter debug
Method Detail |
public static void parseLine(java.lang.String line)
public void enableAllJHDLPrintWriters()
public void disableAllJHDLPrintWriters()
public void setDefaultOutputStream(int jhdlPrintWriterID, java.io.OutputStream passedStream)
public void setDefaultJHDLPrintWriter(int jhdlPrintWriterID, java.io.OutputStream passedStream)
public void setDefaultJHDLPrintWriter(int jhdlPrintWriterID, JHDLPrintWriter passed)
public void setDefaultErrorOutputStream(java.io.OutputStream passedStream)
public void setDefaultWarningOutputStream(java.io.OutputStream passedStream)
public void setDefaultNoticeOutputStream(java.io.OutputStream passedStream)
public void setDefaultDebugOutputStream(java.io.OutputStream passedStream)
public void setDefaultStatusOutputStream(java.io.OutputStream passedStream)
public void setDefaultErrorJHDLPrintWriter(JHDLPrintWriter passed)
public void setDefaultWarningJHDLPrintWriter(JHDLPrintWriter passed)
public void setDefaultNoticeJHDLPrintWriter(JHDLPrintWriter passed)
public void setDefaultDebugJHDLPrintWriter(JHDLPrintWriter passed)
public void setDefaultStatusJHDLPrintWriter(JHDLPrintWriter passed)
public static JHDLOutput getJHDLOutput(java.lang.String name)
JHDLOutput
, identified by a string.
If no JHDLOutput
object exists with that name, one is created.
name
- The name of the JHDLOutput
.
public static JHDLOutput getJHDLOutput()
JHDLOutput
identified as "default"
.
public static boolean redirect(java.lang.String jhdlOutputID, int jhdlPrintWriterID)
OutputStream
for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput
(i.e., "jab"
or "simulator") to null.
public static boolean redirect(java.lang.String jhdlOutputID, int jhdlPrintWriterID, java.io.OutputStream outputStream)
OutputStream
for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput
(i.e., "jab"
or "simulator") to the OutputStream
object passed by the caller.
outputStream
- This is the OutputStream
to which the specified
JHDLPrintWriter
is redirected. A null reference is legal, and simply
disables that JHDLPrintWriter
.
public static boolean redirect(java.lang.String jhdlOutputID, int jhdlPrintWriterID, java.io.OutputStream outputStream, boolean autoFlush)
OutputStream
for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput
(i.e., "jab"
or "simulator") to the OutputStream
object passed by the caller.
outputStream
- This is the OutputStream
to which the specified
JHDLPrintWriter
is redirected. A null reference is legal, and simply
disables that JHDLPrintWriter
.autoFlush
- whether to flush the output stream on every newline
public static boolean redirect(java.lang.String jhdlOutputID, int jhdlPrintWriterID, java.io.Writer outputStream)
OutputStream
for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput
(i.e., "jab"
or "simulator") to the Writer
object passed by the caller.
outputStream
- This is the Writer
to which the specified
JHDLPrintWriter
is redirected. A null reference is legal, and simply
disables that JHDLPrintWriter
.
public static boolean redirect(java.lang.String jhdlOutputID, int jhdlPrintWriterID, java.io.Writer outputStream, boolean autoFlush)
OutputStream
for a given JHDLPrintWriter
(identified by its integer ID value) in a named JHDLOutput
(i.e., "jab"
or "simulator") to the Writer
object passed by the caller.
outputStream
- This is the OutputStream
to which the specified
JHDLPrintWriter
is redirected. A null reference is legal, and simply
disables that JHDLPrintWriter
.autoFlush
- whether to flush the output stream on every newline
public boolean setJHDLPrintWriter(int jhdlPrintWriterID, JHDLPrintWriter passedJHDLPrintWriter)
jhdlPrintWriterID
passed to this method, it will set the
correlating JHDLPrintWriter
reference to passedJHDLPrintWriter
.
jhdlPrintWriterID
- the ID number of the JHDLPrintWriter
instancepassedJHDLPrintWriter
- the new target of the specified JHDLPrintWriter
jhdlPrintWriterID
was validpublic JHDLPrintWriter getJHDLPrintWriter(int jhdlPrintWriterID)
JHDLPrintWriter
that correlates with jhdlPrintWriterID
.
jhdlPrintWriterID
- the ID number of the JHDLPrintWriter
instance to return
JHDLPrintWriter
that corresponds with
jhdlPrintWriterID
public boolean redirect(int jhdlPrintWriterID)
JHDLPrintWriter
instance identified by
jhdlPrintWriterID
to null.
jhdlPrintWriterID
- the ID number of the JHDLPrintWriter
instance to
redirect
public boolean redirect(int jhdlPrintWriterID, java.io.OutputStream outputStream, boolean autoFlush)
JHDLPrintWriter
instance identified by
jhdlPrintWriterID
to outputStream
.
jhdlPrintWriterID
- the ID number of the JHDLPrintWriter
instance to
redirectoutputStream
- the OutputStream
instance with which to instantiate
the new JHDLPrintWriter
autoFlush
- if true, the PrintWriter
will flush its stream after every
call to print()
or println()
; if false, it won't
public boolean redirect(int jhdlPrintWriterID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance identified by
jhdlPrintWriterID
to outputStream
.
jhdlPrintWriterID
- the ID number of the JHDLPrintWriter
instance to
redirectoutputStream
- the OutputStream
instance with which to instantiate
the new JHDLPrintWriter
public boolean redirect(int jhdlPrintWriterID, java.io.Writer outputStream, boolean autoFlush)
JHDLPrintWriter
instance identified by
jhdlPrintWriterID
to a Writer
.
jhdlPrintWriterID
- the ID number of the JHDLPrintWriter
instance to
redirectoutputStream
- the Writer
instance with which to instantiate
the new JHDLPrintWriter
autoFlush
- if true, the PrintWriter
will flush its stream after every
call to print()
or println()
; if false, it won't
public boolean redirect(int jhdlPrintWriterID, java.io.Writer outputWriter)
JHDLPrintWriter
instance identified by
jhdlPrintWriterID
to a Writer
.
jhdlPrintWriterID
- the ID number of the JHDLPrintWriter
instance to
redirect
public static boolean redirectAll(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instances within the JHDLOutput identified
by jhdlOutputID
to outputStream
.
jhdlOutputID
- the ID number of the JHDLOutput
instance to redirectoutputStream
- the OutputStream
instance with which to instantiate
the new JHDLPrintWriter
public boolean redirectAll(java.io.OutputStream outputStream)
JHDLPrintWriter
instances across the JHDLOutput instance from
which it is called to outputStream
.
outputStream
- the OutputStream
instance with which to instantiate
the new JHDLPrintWriter
instances
public static boolean redirectAllJHDLOutputs(java.io.OutputStream outputStream)
JHDLPrintWriter
instances across all JHDLOutput instances to
outputStream
.
outputStream
- the OutputStream
instance with which to instantiate
the new JHDLPrintWriter
instances
public static boolean redirectAll(java.lang.String jhdlOutputID, java.io.Writer outputStream)
JHDLPrintWriter
instances within the JHDLOutput identified
by jhdlOutputID
to a Writer
.
jhdlOutputID
- the ID number of the JHDLOutput
instance to redirectoutputStream
- the OutputStream
instance with which to instantiate
the new JHDLPrintWriter
public boolean redirectAll(java.io.Writer outputStream)
JHDLPrintWriter
instances across the JHDLOutput instance from
which it is called to outputStream
.
outputStream
- the Writer
instance with which to instantiate
the new JHDLPrintWriter
instances
public static boolean redirectAllJHDLOutputs(java.io.Writer outputStream)
JHDLPrintWriter
instances across all JHDLOutput instances to
a Writer
.
outputStream
- the Writer
instance with which to instantiate
the new JHDLPrintWriter
instances
public static boolean redirectError(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance named error
to the
given OutputStream
.
public boolean redirectError(java.io.OutputStream outputStream)
JHDLPrintWriter
instance named error
to the
given OutputStream
.
public static boolean redirectErr(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance named error
to the
given OutputStream
.
jhdlOutputID
- the identifier of the JHDLOutput instance whose JHDLPrintWriter named
error will be redirectedoutputStream
- the OutputStream
with which to instantiate the
JHDLPrintWriter
named error
public boolean redirectErr(java.io.OutputStream outputStream)
JHDLPrintWriter
instance named error
to the
given OutputStream
.
outputStream
- the OutputStream
with which to instantiate the
JHDLPrintWriter
named error
public static boolean redirectWarning(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance named warning
to the
given OutputStream
.
jhdlOutputID
- the identifier of the JHDLOutput
instance affectedoutputStream
- the OutputStream
to which to redirect the
warning
instance of JHDLPrintWriter
public boolean redirectWarning(java.io.OutputStream outputStream)
JHDLPrintWriter
instance named warning
to the
given OutputStream
.
outputStream
- the OutputStream
to which to redirect the
warning
instance of JHDLPrintWriter
public static boolean redirectWarn(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance named warning
to the
given OutputStream
.
jhdlOutputID
- the identifier of the JHDLOutput
instance affectedoutputStream
- the OutputStream
to which to redirect the
warning
instance of JHDLPrintWriter
public boolean redirectWarn(java.io.OutputStream outputStream)
JHDLPrintWriter
instance named warning
to the
given OutputStream
.
outputStream
- the OutputStream
to which to redirect the
warning
instance of JHDLPrintWriter
public static boolean redirectNotice(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance named notice
to the
given OutputStream
.
jhdlOutputID
- the identifier of the JHDLOutput
affectedoutputStream
- the OutputStream
to which to redirect the
notice
instance of JHDLPrintWriter
public boolean redirectNotice(java.io.OutputStream outputStream)
JHDLPrintWriter
instance named notice
to the
given OutputStream
.
outputStream
- the OutputStream
to which to redirect the
notice
instance of JHDLPrintWriter
public static boolean redirectNotify(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance named notice
to the
given OutputStream
.
jhdlOutputID
- the identifier of the JHDLOutput
affectedoutputStream
- the OutputStream
to which to redirect the
notice
instance of JHDLPrintWriter
public boolean redirectNotify(java.io.OutputStream outputStream)
JHDLPrintWriter
instance named notice
to the
given OutputStream
.
outputStream
- the OutputStream
to which to redirect the
notice
instance of JHDLPrintWriter
public static boolean redirectStatus(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance named status
to the
given OutputStream
.
jhdlOutputID
- the identifier of the JHDLOutput
affectedoutputStream
- the OutputStream
to which to redirect the
status
instance of JHDLPrintWriter
public boolean redirectStatus(java.io.OutputStream outputStream)
JHDLPrintWriter
instance named status
to the
given OutputStream
.
outputStream
- the OutputStream
to which to redirect the
status
instance of JHDLPrintWriter
public static boolean redirectDebug(java.lang.String jhdlOutputID, java.io.OutputStream outputStream)
JHDLPrintWriter
instance named debug
to the
given OutputStream
.
jhdlOutputID
- the identifier of the JHDLOutput
affectedoutputStream
- the OutputStream
to which to redirect the
debug
instance of JHDLPrintWriter
public boolean redirectDebug(java.io.OutputStream outputStream)
JHDLPrintWriter
instance named debug
to the
given OutputStream
.
outputStream
- the OutputStream
to which to redirect the
debug
instance of JHDLPrintWriter
public static boolean setAllJHDLOutputsToConsole()
JHDLPrintWriter
's in all existing JHDLOutput
objects to print to System.out
.
public boolean setAllToConsole()
JHDLPrintWriter
to System.out
.
public static boolean setAllToConsole(java.lang.String jhdlOutputID)
JHDLPrintWriter
's in the JHDLOutput
instance
referenced in the JHDLOutputs
hashtable by the jhdlOutputID
key to System.out
.
jhdlOutputID
- This identifier determines the JHDLOutput
to redirect.
public static boolean setToConsole(java.lang.String jhdlOutputID, int jhdlPrintWriterID)
JHDLPrintWriter
identified by jhdlPrintWriterID
in the
named JHDLOutput
to System.out
.
jhdlOutputID
- the identifier of the instance of JHDLOutput
to affectjhdlPrintWriterID
- the identifier of the instance of JHDLPrintWriter
to redirect
public boolean setToConsole(int jhdlPrintWriterID)
JHDLPrintWriter
identified by
jhdlPrintWriterID
to System.out
.
jhdlPrintWriterID
- the identifier of the instance of JHDLPrintWriter
to redirect
public static boolean setToFile(java.lang.String jhdlOutputID, int jhdlPrintWriterID, java.lang.String fileName)
JHDLPrintWriter
identified by jhdlPrintWriterID
in the
named JHDLOutput
to a file named fileName
.
jhdlOutputID
- the identifier for the instance of JHDLOutput
whose
JHDLPrintWriter
will be set to a filejhdlPrintWriterID
- the identifier for the instance of JHDLPrintWriter
to redirect to the given filefileName
- the name of the output file
public boolean setToFile(int jhdlPrintWriterID, java.lang.String fileName)
jhdlPrintWriterID
- the identifier for the instance of JHDLPrintWriter
to redirect to the given filefileName
- the name of the output file
public static boolean setAllJHDLOutputsToFile(java.lang.String fileName)
JHDLPrintWriter
instances in all existing JHDLOutput
instances to print to the file named fileName
.
fileName
- the name of the output file
public boolean setAllToFile(java.lang.String fileName)
JHDLPrintWriter
instances in this JHDLOutput
object
to the given fileName
.
fileName
- the name of the output file
public static boolean setAllToFile(java.lang.String jhdlOutputID, java.lang.String fileName)
JHDLPrintWriter
objects for the given jhdlOutputID
to the file named fileName
.
jhdlOutputID
- the identifier of the JHDLOutput
object for which
all instances of the JHDLPrintWriter
object will be redirected to the filefileName
- the name of the output file
public static boolean setToNothing(java.lang.String jhdlOutputID, int jhdlPrintWriterID)
JHDLPrintWriter
identified by jhdlPrintWriterID
in
the named JHDLOutput
to not print.
jhdlOutputID
- the identifier of the instance of JHDLOutput
affectedjhdlPrintWriterID
- the identifier of the instance of JHDLPrintWriter
to be redirected to nothing
public boolean setToNothing(int jhdlPrintWriterID)
JHDLPrintWriter
identified by
jhdlPrintWriterID
to null.
jhdlPrintWriterID
- the identifier of the JHDLPrintWriter
to redirect
to nothing
public static boolean setAllToNothing(java.lang.String jhdlOutputID)
JHDLPrintWriter
instances in the named JHDLOutput
to not print.
jhdlOutputID
- the identifier of the instance of JHDLOutput
public static boolean setAllJHDLOutputsToNothing()
JHDLPrintWriter
s in all JHDLOutput
s.
public static java.lang.String[] getJHDLOutputNames()
JHDLOutput<\code> object names currently created.
- Returns:
- An array with all the
JHDLOutput<\code> object names currently created.
public static boolean isAvailable(java.lang.String name)
name
- Name of JHDLOutput to look for.
public boolean setAllToNothing()
JHDLPrintWriter
instances in this instance of
JHDLOutput
to null.
public static java.lang.String getJHDLPrintWriterName(int jhdlPrintWriterID)
jhdlPrintWriterID
- the constant integer representing a particular output stream
printWriterID
public static int getJHDLPrintWriterIdentifier(java.lang.String jhdlPrintWriterName)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |