|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.Writer
java.io.FilterWriter
org.geotools.parameter.ParameterWriter
Format parameter descriptors or parameter values in a tabular format. This writer assumes a monospaced font and an encoding capable to provide drawing box characters (e.g. unicode).
| Field Summary |
| Fields inherited from class java.io.FilterWriter |
out |
| Fields inherited from class java.io.Writer |
lock |
| Constructor Summary | |
ParameterWriter()
Creates a new formatter writting parameters to the default output stream. |
|
ParameterWriter(java.io.Writer out)
Creates a new formatter writting parameters to the specified output stream. |
|
| Method Summary | |
void |
format(org.opengis.referencing.operation.OperationMethod operation)
Prints the elements of an operation to the output stream. |
void |
format(org.opengis.parameter.ParameterDescriptorGroup descriptor)
Prints the elements of a descriptor group to the output stream. |
void |
format(org.opengis.parameter.ParameterValueGroup values)
Prints the elements of a parameter group to the output stream. |
protected java.lang.String |
formatValue(java.lang.Object value)
Format the specified value as a string. |
java.util.Locale |
getLocale()
Returns the current locale. |
static void |
print(org.opengis.referencing.operation.OperationMethod operation)
Prints the elements of an operation to the default output stream. |
static void |
print(org.opengis.parameter.ParameterDescriptorGroup descriptor)
Prints the elements of a descriptor group to the default output stream. |
static void |
print(org.opengis.parameter.ParameterValueGroup values)
Prints the elements of a parameter group to the default output stream. |
void |
setLocale(java.util.Locale locale)
Set the locale to use for table formatting. |
void |
summary(java.util.Collection parameters,
java.util.Set scopes)
Format a summary of a collection of identified objects. |
| Methods inherited from class java.io.FilterWriter |
close, flush, write, write, write |
| Methods inherited from class java.io.Writer |
write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParameterWriter()
public ParameterWriter(java.io.Writer out)
| Method Detail |
public static void print(org.opengis.referencing.operation.OperationMethod operation)
new
ParameterWriter().format(operation).
public static void print(org.opengis.parameter.ParameterDescriptorGroup descriptor)
new
ParameterWriter().format(descriptor).
public static void print(org.opengis.parameter.ParameterValueGroup values)
new
ParameterWriter().format(values).
public void format(org.opengis.referencing.operation.OperationMethod operation)
throws java.io.IOException
operation - The operation method to format.
java.io.IOException - if an error occured will writing to the stream.
public void format(org.opengis.parameter.ParameterDescriptorGroup descriptor)
throws java.io.IOException
descriptor - The descriptor group to format.
java.io.IOException - if an error occured will writing to the stream.
public void format(org.opengis.parameter.ParameterValueGroup values)
throws java.io.IOException
values - The parameter group to format.
java.io.IOException - if an error occured will writing to the stream.
public void summary(java.util.Collection parameters,
java.util.Set scopes)
throws java.io.IOException
parameters - The collection of parameters to format.scopes - The set of scopes to include in the table, of for all
of them. A restricted a set will produce a table with less columns.
java.io.IOException - if an error occured will writing to the stream.public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
protected java.lang.String formatValue(java.lang.Object value)
Number, Date and Angle object according the
current locale. This method can been overriden if
more objects need to be formatted in a special way.
value - the value to format.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||