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()
Node
null
.public java.lang.String getName()
Node
public DataSource getDataSource() throws java.io.IOException
Leaf
getDataSource
in interface Leaf
java.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
Leaf
getOutputStream
in interface Leaf
java.io.IOException
- if there's some errorpublic java.lang.String toString()
toString
in class java.lang.Object