public class NotReachableNut extends AbstractConvertibleNut
This class represents a nut that is not reachable. Usually instantiated by the
StaticEngine
.
Constructor and Description |
---|
NotReachableNut(String name,
NutType nutType,
String heapId,
Long version)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTransformed()
Indicates if this nut is transformed or not.
|
InputStream |
openStream()
Opens and returns an
InputStream pointing to the nut. |
void |
transform(Pipe.OnReady... onReady)
Transforms the source stream with all registered transformers and calls the given callback in addition
to callbacks previously registered.
|
addReferencedNut, addTransformer, equals, getName, getNutType, getOriginalNuts, getParentFile, getReadyCallbacks, getReferencedNuts, getTransformers, hashCode, isCompressed, isDynamic, isSubResource, onReady, setIsCompressed, setIsSubResource, setNutName, setNutType, setOriginalNuts
getInitialName, getInitialNutType, getProxyUri, getVersionNumber, setProxyUri, setVersionNumber, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInitialName, getInitialNutType, getProxyUri, getVersionNumber, setProxyUri
public InputStream openStream() throws IOException
Opens and returns an InputStream
pointing to the nut.
openStream
in interface Nut
openStream
in class AbstractConvertibleNut
IOException
- if an I/O error occurspublic void transform(Pipe.OnReady... onReady) throws IOException
Transforms the source stream with all registered transformers and calls the given callback in addition to callbacks previously registered. The method also writes the result to the given output stream.
onReady
- the callbackIOException
- if an I/O error occurspublic boolean isTransformed()
Indicates if this nut is transformed or not.
true
if transformed, false
otherwiseCopyright © 2012-2015. All Rights Reserved.