| Constructor and Description |
|---|
ErrorLeaf(Branch parent,
java.lang.Throwable err)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public ErrorLeaf(Branch parent, java.lang.Throwable err)
parent - leaf parenterr - the throwable which this leaf reprsentspublic Branch getParent()
Nodenull.public java.lang.String getName()
Nodepublic DataSource getDataSource() throws java.io.IOException
LeafgetDataSource in interface Leafjava.io.FileNotFoundException - if the file named by this leaf does
not existjava.io.IOException - if some other error occurspublic java.io.OutputStream getOutputStream()
throws java.io.IOException
LeafgetOutputStream in interface Leafjava.io.IOException - if there's some errorpublic java.lang.String toString()
toString in class java.lang.Object