Top Description Fields Constructors Methods
org.apache.tools.ant.util

public Class PropertyOutputStream

extends ByteArrayOutputStream
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .OutputStream, org.apache.tools.ant.Project, org.apache.tools.ant.types.resources.PropertyResource

OutputStream that writes an Ant property.
Since
Ant 1.7
See Also
PropertyResource#getOutputStream()

Field Summary

Modifier and TypeField and Description
private Project
private String
private boolean
Inherited from java.io.ByteArrayOutputStream:
bufcount

Constructor Summary

AccessConstructor and Description
public
PropertyOutputStream(Project
the associated Ant Project.
p
,
String
the String property name.
s
)

Construct a new PropertyOutputStream for the specified Project and property name, trimming the property value.

public
PropertyOutputStream(Project
the associated Ant Project.
p
,
String
the String property name.
s
,
boolean
the boolean trim mode.
b
)

Construct a new PropertyOutputStream for the specified Project, property name, and trim mode.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.ByteArrayOutputStream.close.

Implements java.io.Closeable.close.

Close the PropertyOutputStream, storing the property.
Inherited from java.io.ByteArrayOutputStream:
resetsizetoByteArraytoStringtoStringtoStringtoStringwritewritewriteByteswriteTo

Field Detail

projectback to summary
private Project project
propertyback to summary
private String property
trimback to summary
private boolean trim

Constructor Detail

PropertyOutputStreamback to summary
public PropertyOutputStream(Project p, String s)

Construct a new PropertyOutputStream for the specified Project and property name, trimming the property value.

Parameters
p:Project

the associated Ant Project.

s:String

the String property name.

PropertyOutputStreamback to summary
public PropertyOutputStream(Project p, String s, boolean b)

Construct a new PropertyOutputStream for the specified Project, property name, and trim mode.

Parameters
p:Project

the associated Ant Project.

s:String

the String property name.

b:boolean

the boolean trim mode.

Method Detail

closeback to summary
public void close()

Overrides java.io.ByteArrayOutputStream.close.

Implements java.io.Closeable.close.

Close the PropertyOutputStream, storing the property.

Annotations
@Override