All Packages Class Hierarchy This Package Previous Next Index
Class openjava.tools.WriterStack
java.lang.Object
|
+----openjava.tools.WriterStack
- public class WriterStack
- extends Object
Wrapper class of class Stack to specialize into Writer.
-
WriterStack()
- Constructs this stack with an element(standard output).
-
WriterStack(OutputStream)
- Constructs this stack with the specified output stream.
-
WriterStack(PrintWriter)
- Constructs this stack with the specified print writer.
-
WriterStack(Writer)
- Constructs this stack with the specified writer.
-
empty()
- Tests if this stack is empty.
-
peek()
- Looks at the print writer at the top of this stack
without removing it from the stack.
-
pop()
- Removes the print writer at the top of this stack and
returns that print writer as the value of this function.
-
push(OutputStream)
- Pushes a print writer from the specified print stream
onto the top of this stack.
-
push(PrintWriter)
- Pushes a print writer onto the top of this stack.
-
push(Writer)
- Pushes a print writer onto the top of this stack.
WriterStack
public WriterStack()
- Constructs this stack with an element(standard output).
WriterStack
public WriterStack(PrintWriter writer)
- Constructs this stack with the specified print writer.
WriterStack
public WriterStack(Writer writer)
- Constructs this stack with the specified writer.
WriterStack
public WriterStack(OutputStream out)
- Constructs this stack with the specified output stream.
peek
public PrintWriter peek()
- Looks at the print writer at the top of this stack
without removing it from the stack.
- Returns:
- the print writer at the top of this stack.
pop
public PrintWriter pop()
- Removes the print writer at the top of this stack and
returns that print writer as the value of this function.
- Returns:
- The object at the top of this stack.
push
public void push(PrintWriter writer)
- Pushes a print writer onto the top of this stack.
- Parameters:
- writer - the print writer to be pushed onto this stack.
- Returns:
- the item argument.
push
public void push(Writer writer)
- Pushes a print writer onto the top of this stack.
- Parameters:
- writer - the writer to be pushed onto this stack.
- Returns:
- the item argument.
push
public void push(OutputStream ostream)
- Pushes a print writer from the specified print stream
onto the top of this stack.
- Parameters:
- ostream - the output stream to be pushed onto this stack.
- Returns:
- the item argument.
empty
public boolean empty()
- Tests if this stack is empty.
- Returns:
- true if this stack is empty; false otherwise.
All Packages Class Hierarchy This Package Previous Next Index