Top Description Fields Constructors Methods
org.apache.tools.ant.types.resources

public Class LogOutputResource

extends Resource
implements Appendable
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.types.resources.Appendable
Imports
java.io.IOException, .OutputStream, org.apache.tools.ant.ProjectComponent, org.apache.tools.ant.taskdefs.LogOutputStream, org.apache.tools.ant.types.Resource

Output-only Resource that always appends to Ant's log.
Since
Ant 1.8

Field Summary

Modifier and TypeField and Description
private static final String
private LogOutputStream
Inherited from org.apache.tools.ant.types.Resource:
MAGICUNKNOWN_DATETIMEUNKNOWN_SIZE

Constructor Summary

AccessConstructor and Description
public
LogOutputResource(ProjectComponent
ditto
managingComponent
)

Create a new LogOutputResource.

public
LogOutputResource(ProjectComponent
owning log content
managingComponent
,
int
log level
level
)

Create a new LogOutputResource.

Method Summary

Modifier and TypeMethod and Description
public OutputStream
public OutputStream
getOutputStream()

Overrides org.apache.tools.ant.types.Resource.getOutputStream.

Get an OutputStream for the Resource.
Inherited from org.apache.tools.ant.types.Resource:
asasOptionalclonecompareToequalsgetInputStreamgetLastModifiedgetMagicNumbergetNamegetRefgetSizehashCodeisDirectoryisExistsisFilesystemOnlyiteratorsetDirectorysetExistssetLastModifiedsetNamesetRefidsetSizesizetoLongStringtoString

Field Detail

NAMEback to summary
private static final String NAME
outputStreamback to summary
private LogOutputStream outputStream

Constructor Detail

LogOutputResourceback to summary
public LogOutputResource(ProjectComponent managingComponent)

Create a new LogOutputResource.

Parameters
managingComponent:ProjectComponent

ditto

LogOutputResourceback to summary
public LogOutputResource(ProjectComponent managingComponent, int level)

Create a new LogOutputResource.

Parameters
managingComponent:ProjectComponent

owning log content

level:int

log level

Method Detail

getAppendOutputStreamback to summary
public OutputStream getAppendOutputStream() throws IOException

Implements org.apache.tools.ant.types.resources.Appendable.getAppendOutputStream.

Doc from org.apache.tools.ant.types.resources.Appendable.getAppendOutputStream.

Get an appending OutputStream.

Returns:OutputStream

OutputStream

Annotations
@Override
Exceptions
IOException:
if anything goes wrong
getOutputStreamback to summary
public OutputStream getOutputStream() throws IOException

Overrides org.apache.tools.ant.types.Resource.getOutputStream.

Doc from org.apache.tools.ant.types.Resource.getOutputStream.

Get an OutputStream for the Resource.

Returns:OutputStream

an OutputStream to which content can be written.

Annotations
@Override
Exceptions
IOException:
if unable to provide the content of this Resource as a stream.