|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.connect.ErrorLeaf
public class ErrorLeaf
Dummy Leaf implmentation which describes an error condition.
Constructor Summary | |
---|---|
ErrorLeaf(Branch parent,
java.lang.Throwable err)
Constructor. |
Method Summary | |
---|---|
DataSource |
getDataSource()
Returns a data source (replayable input stream) containing the data content of this leaf. |
java.lang.String |
getName()
Returns the name of this node. |
java.io.OutputStream |
getOutputStream()
Returns an output stream from this leaf. |
Branch |
getParent()
Returns the parent branch of this node. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ErrorLeaf(Branch parent, java.lang.Throwable err)
parent
- leaf parenterr
- the throwable which this leaf reprsentsMethod Detail |
---|
public Branch getParent()
Node
getParent
in interface Node
public java.lang.String getName()
Node
getName
in interface Node
public DataSource getDataSource() throws java.io.IOException
Leaf
getDataSource
in interface Leaf
java.io.IOException
- if some other error occurspublic java.io.OutputStream getOutputStream() throws java.io.IOException
Leaf
getOutputStream
in interface Leaf
java.io.IOException
- if there's some errorpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |