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
Wraps
InputStream to Resource.- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class org.apache.tools.ant.types.Resource
MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZEFields inherited from class org.apache.tools.ant.types.DataType
checked, refFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
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, toStringMethods 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, tooManyAttributesMethods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollection
isEmpty, stream
-
Constructor Details
-
StreamResource
- Parameters:
name- Used for display purpose.
-
-
Method Details
-
getInputStream
- Overrides:
getInputStreamin classorg.apache.tools.ant.types.Resource- Throws:
IOException
-
equals
- Overrides:
equalsin classorg.apache.tools.ant.types.Resource
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.tools.ant.types.Resource
-