com.aspose.cells

Interface ICustomParser

  • public interface ICustomParser 

Allows users to add their custom value parser for parsing string values to other proper cell value object.

Method Summary
abstractjava.lang.StringgetFormat()
Gets the formatting pattern for last invocation of parseObject(java.lang.String).
abstractjava.lang.ObjectparseObject(java.lang.Stringvalue)
Parses given string to proper value object.
 

    • Method Detail

      • parseObject

        public abstract java.lang.Object parseObject(java.lang.String value)
        Parses given string to proper value object.
        Parameters:
        value - The string value to be parsed
        Returns:
        Parsed value object from given string. If given string cannot be parsed to proper value object, returns null.
      • getFormat

        public abstract java.lang.String getFormat()
        Gets the formatting pattern for last invocation of parseObject(java.lang.String). The formatting pattern should be same with Style.InnerCustom of InvariantCulture to be used for formatting corresponding cell in ms excel.