Package hudson.util
Class StreamResource
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.types.DataType
-
- org.apache.tools.ant.types.Resource
-
- hudson.util.StreamResource
-
- All Implemented Interfaces:
Cloneable
,Comparable<org.apache.tools.ant.types.Resource>
,Iterable<org.apache.tools.ant.types.Resource>
,org.apache.tools.ant.types.ResourceCollection
public class StreamResource extends org.apache.tools.ant.types.Resource
WrapsInputStream
toResource
.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description StreamResource(String name, InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
InputStream
getInputStream()
int
hashCode()
-
Methods inherited from class org.apache.tools.ant.types.Resource
as, asOptional, clone, compareTo, getLastModified, getMagicNumber, getName, getOutputStream, getRef, getSize, isDirectory, isExists, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setRefid, setSize, size, toLongString, toString
-
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
-
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
StreamResource
public StreamResource(String name, @NonNull InputStream in)
- Parameters:
name
- Used for display purpose.
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Overrides:
getInputStream
in classorg.apache.tools.ant.types.Resource
- Throws:
IOException
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classorg.apache.tools.ant.types.Resource
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.apache.tools.ant.types.Resource
-
-