OpenAPI 1.0

com.aquafold.openapi.io
Interface AQFormattedTextWriter

All Superinterfaces:
AQDataWriter, Closeable
All Known Subinterfaces:
AQTextFileWriter, AQTextStringWriter

public interface AQFormattedTextWriter
extends AQDataWriter


Method Summary
 String getLineDelimiter()
          Returns delimited string.
 void setDecimalSymbol(String symbol)
          Sets the character used for decimal sign for formatting NUMBER columns.
 void setDefaultDateFormat(String spec)
          Sets default format for DATE columns, using the platform locale.
 void setDefaultDateFormat(String spec, Object locale)
          Sets default format for DATE columns.
 void setDefaultDateTimeFormat(String spec)
          Sets default format for DATETIME columns, using the platform locale.
 void setDefaultDateTimeFormat(String spec, Object locale)
          Sets default format for DATETIME columns.
 void setDefaultNumberFormat()
          Sets default number format for NUMBER columns, using the platform locale.
 void setDefaultNumberFormat(Object locale)
          Sets default number format for NUMBER columns, using the specified locale.
 void setDefaultTimeFormat(String spec)
          Sets default format for TIME columns, using the platform locale.
 void setDefaultTimeFormat(String spec, Object locale)
          Sets default format for TIME columns.
 void setLineDelimiter(String delimiter)
          Sets line delimiter string.
 void setNullString(String nullString)
          Sets a default string to be printed if the data is null.
 
Methods inherited from interface com.aquafold.openapi.io.AQDataWriter
close, write, write, write, write
 

Method Detail

setDefaultDateFormat

void setDefaultDateFormat(String spec)
Sets default format for DATE columns, using the platform locale. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.

Parameters:
spec - Format specification as defined by SimpleDateFormat.

setDefaultDateFormat

void setDefaultDateFormat(String spec,
                          Object locale)
Sets default format for DATE columns. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.

Parameters:
spec - Format specification as defined by SimpleDateFormat.
locale - Locale code of Locale object.

setDefaultTimeFormat

void setDefaultTimeFormat(String spec)
Sets default format for TIME columns, using the platform locale. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.

Parameters:
spec - Format specification as defined by SimpleDateFormat.

setDefaultTimeFormat

void setDefaultTimeFormat(String spec,
                          Object locale)
Sets default format for TIME columns. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.

Parameters:
spec - Format specification as defined by SimpleDateFormat.
locale - Locale code of Locale object.

setDefaultDateTimeFormat

void setDefaultDateTimeFormat(String spec)
Sets default format for DATETIME columns, using the platform locale. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.

Parameters:
spec - Format specification as defined by SimpleDateFormat.

setDefaultDateTimeFormat

void setDefaultDateTimeFormat(String spec,
                              Object locale)
Sets default format for DATETIME columns. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.

Parameters:
spec - Format specification as defined by SimpleDateFormat.
locale - Locale code of Locale object.

setDefaultNumberFormat

void setDefaultNumberFormat()
Sets default number format for NUMBER columns, using the platform locale. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.


setDefaultNumberFormat

void setDefaultNumberFormat(Object locale)
Sets default number format for NUMBER columns, using the specified locale. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.

Parameters:
locale - Locale code of Locale object.

setDecimalSymbol

void setDecimalSymbol(String symbol)
Sets the character used for decimal sign for formatting NUMBER columns.

Parameters:
symbol - The string used for decimal sign, only the first character is used.

setNullString

void setNullString(String nullString)
Sets a default string to be printed if the data is null.

Parameters:
nullString -

setLineDelimiter

void setLineDelimiter(String delimiter)
Sets line delimiter string.

Parameters:
delimiter - Delimiter string.

getLineDelimiter

String getLineDelimiter()
Returns delimited string.


OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.