|
|||||||||
| 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 reprsents| Method Detail |
|---|
public Branch getParent()
Node
getParent in interface Nodepublic java.lang.String getName()
Node
getName in interface Node
public DataSource getDataSource()
throws java.io.IOException
Leaf
getDataSource in interface Leafjava.io.IOException - if some other error occurs
public java.io.OutputStream getOutputStream()
throws java.io.IOException
Leaf
getOutputStream in interface Leafjava.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 | ||||||||