Package gnu.kawa.functions
Class ObjectFormat
- java.lang.Object
-
- java.text.Format
-
- gnu.kawa.format.ReportFormat
-
- gnu.kawa.functions.ObjectFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ObjectFormat extends gnu.kawa.format.ReportFormat- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectFormat(boolean readable)ObjectFormat(boolean readable, int maxChars)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intformat(java.lang.Object[] args, int start, java.lang.Appendable dst, int maxChars, boolean readable)intformat(java.lang.Object[] args, int start, java.lang.Appendable dst, java.text.FieldPosition fpos)Format an array of arguments, and write out the result.static booleanformat(java.lang.Object arg, java.lang.Appendable dst, int maxChars, boolean readable)Return false iff truncation.static ObjectFormatgetInstance(boolean readable)java.lang.ObjectparseObject(java.lang.String text, java.text.ParsePosition status)
-
-
-
Method Detail
-
getInstance
public static ObjectFormat getInstance(boolean readable)
-
format
public int format(java.lang.Object[] args, int start, java.lang.Appendable dst, java.text.FieldPosition fpos) throws java.io.IOExceptionDescription copied from class:gnu.kawa.format.ReportFormatFormat an array of arguments, and write out the result.- Specified by:
formatin classgnu.kawa.format.ReportFormat- Parameters:
args- the objects to be formattedstart- the index (in args) of the argument to start withdst- where to write the result- Returns:
- an integer result(resultCode, nextArg), where nextArg is the index following the last argument processed, and code is a result code (normally 0, or negative if early termination)
- Throws:
java.io.IOException
-
format
public static boolean format(java.lang.Object arg, java.lang.Appendable dst, int maxChars, boolean readable) throws java.io.IOExceptionReturn false iff truncation.- Parameters:
maxChars- maximum number of characters; -1 means unlimited- Throws:
java.io.IOException
-
format
public static int format(java.lang.Object[] args, int start, java.lang.Appendable dst, int maxChars, boolean readable) throws java.io.IOException- Throws:
java.io.IOException
-
parseObject
public java.lang.Object parseObject(java.lang.String text, java.text.ParsePosition status)- Overrides:
parseObjectin classgnu.kawa.format.ReportFormat
-
-