|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.connect.ErrorLeaf
Dummy Leaf implmentation which describes an error condition.
Constructor Summary | |
ErrorLeaf(Branch parent,
Throwable err)
Constructor. |
Method Summary | |
DataSource |
getDataSource()
Returns a data source (replayable input stream) containing the data content of this leaf. |
String |
getName()
Returns the name of this node. |
OutputStream |
getOutputStream()
Returns an output stream from this leaf. |
Branch |
getParent()
Returns the parent branch of this node. |
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, Throwable err)
parent
- leaf parenterr
- the throwable which this leaf reprsentsMethod Detail |
public Branch getParent()
Node
getParent
in interface Node
public String getName()
Node
getName
in interface Node
public DataSource getDataSource() throws IOException
Leaf
getDataSource
in interface Leaf
IOException
- if some other error occurspublic OutputStream getOutputStream() throws IOException
Leaf
getOutputStream
in interface Leaf
IOException
- if there's some errorpublic String toString()
toString
in class Object
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |