org.apache.ant.compress.resources
Class DevZeroResource

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 org.apache.ant.compress.resources.DevZeroResource
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, org.apache.tools.ant.types.ResourceCollection

public class DevZeroResource
extends org.apache.tools.ant.types.Resource

A resource that returns arbitrary many 0-bytes as its content.

This class should likely be part of Ant and only lives here as it is needed for tests.

Since:
Compress Antlib 1.2

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
DevZeroResource()
           
 
Method Summary
 java.io.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

DevZeroResource

public DevZeroResource()
Method Detail

getInputStream

public java.io.InputStream getInputStream()
Overrides:
getInputStream in class org.apache.tools.ant.types.Resource