Class ObjectFormat

    • Constructor Detail

      • ObjectFormat

        public ObjectFormat​(boolean readable)
      • ObjectFormat

        public ObjectFormat​(boolean readable,
                            int maxChars)
    • Method Detail

      • getInstance

        public static ObjectFormat getInstance​(boolean readable)
      • format

        public int format​(Object[] args,
                          int start,
                          Appendable dst,
                          FieldPosition fpos)
                   throws IOException
        Description copied from class: gnu.kawa.format.ReportFormat
        Format an array of arguments, and write out the result.
        Specified by:
        format in class gnu.kawa.format.ReportFormat
        Parameters:
        args - the objects to be formatted
        start - the index (in args) of the argument to start with
        dst - 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:
        IOException
      • format

        public static boolean format​(Object arg,
                                     Appendable dst,
                                     int maxChars,
                                     boolean readable)
                              throws IOException
        Return false iff truncation.
        Parameters:
        maxChars - maximum number of characters; -1 means unlimited
        Throws:
        IOException
      • parseObject

        public Object parseObject​(String text,
                                  ParsePosition status)
        Overrides:
        parseObject in class gnu.kawa.format.ReportFormat