org.apache.tools.ant.util

Class PropertyOutputStream


public class PropertyOutputStream
extends ByteArrayOutputStream

Exception thrown when an attempt is made to get an OutputStream from an immutable Resource.
Since:
Ant 1.7

Constructor Summary

PropertyOutputStream(Project p, String s)
Construct a new PropertyOutputStream for the specified Project and property name, trimming the property value.
PropertyOutputStream(Project p, String s, boolean b)
Construct a new PropertyOutputStream for the specified Project, property name, and trim mode.

Method Summary

void
close()
Close the PropertyOutputStream, storing the property.

Constructor Details

PropertyOutputStream

public PropertyOutputStream(Project p,
                            String s)
Construct a new PropertyOutputStream for the specified Project and property name, trimming the property value.
Parameters:
p - the associated Ant Project.
s - the String property name.

PropertyOutputStream

public PropertyOutputStream(Project p,
                            String s,
                            boolean b)
Construct a new PropertyOutputStream for the specified Project, property name, and trim mode.
Parameters:
p - the associated Ant Project.
s - the String property name.
b - the boolean trim mode.

Method Details

close

public void close()
Close the PropertyOutputStream, storing the property.