hudson.util
Class StreamResource

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by org.apache.tools.ant.types.Resource
              extended by hudson.util.StreamResource
All Implemented Interfaces:
Cloneable, Comparable, 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_SIZE
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
StreamResource(String name, InputStream in)
           
 
Method Summary
 InputStream getInputStream()
           
 
Methods inherited from class org.apache.tools.ant.types.Resource
as, clone, compareTo, equals, getLastModified, getMagicNumber, getName, getOutputStream, getSize, hashCode, 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, 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
 

Constructor Detail

StreamResource

public StreamResource(String name,
                      InputStream in)
Parameters:
name - Used for display purpose.
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class org.apache.tools.ant.types.Resource
Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.