Class LogOutputResource
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.Resource
org.apache.tools.ant.types.resources.LogOutputResource
- All Implemented Interfaces:
- Cloneable,- Comparable<Resource>,- Iterable<Resource>,- ResourceCollection,- Appendable
Output-only Resource that always appends to Ant's log.
- Since:
- Ant 1.8
- 
Field SummaryFields inherited from class org.apache.tools.ant.types.ResourceMAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZEFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructorsConstructorDescriptionLogOutputResource(ProjectComponent managingComponent) Create a new LogOutputResource.LogOutputResource(ProjectComponent managingComponent, int level) Create a new LogOutputResource.
- 
Method SummaryModifier and TypeMethodDescriptionGet an appending OutputStream.Get an OutputStream for the Resource.Methods inherited from class org.apache.tools.ant.types.Resourceas, asOptional, clone, compareTo, equals, getInputStream, getLastModified, getMagicNumber, getName, getRef, getSize, hashCode, isDirectory, isExists, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setRefid, setSize, size, toLongString, toStringMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, 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.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollectionisEmpty, stream
- 
Constructor Details- 
LogOutputResourceCreate a new LogOutputResource.- Parameters:
- managingComponent- ditto
 
- 
LogOutputResourceCreate a new LogOutputResource.- Parameters:
- managingComponent- owning log content
- level- log level
 
 
- 
- 
Method Details- 
getAppendOutputStreamGet an appending OutputStream.- Specified by:
- getAppendOutputStreamin interface- Appendable
- Returns:
- OutputStream
- Throws:
- IOException- if anything goes wrong
 
- 
getOutputStreamGet an OutputStream for the Resource.- Overrides:
- getOutputStreamin class- Resource
- Returns:
- an OutputStream to which content can be written.
- Throws:
- IOException- if unable to provide the content of this Resource as a stream.
 
 
-