Class Util


  • public class Util
    extends Object
    • Field Detail

      • createPlatformIndependentXML

        public static final boolean createPlatformIndependentXML
      • ESCAPE_APOS

        public static final int ESCAPE_APOS
        If "anded" to the escapeMask argument in calls to escapeXMLAttribute(String s,int escapeMask), it will cause any apostroph character ("'") in s to be quoted by the character entiry "'"
        See Also:
        Constant Field Values
      • ESCAPE_GT

        public static final int ESCAPE_GT
        If "anded" to the escapeMask argument in calls to escapeXMLAttribute(String s,int escapeMask), it will cause any "greater" character (">") in s to be quoted by the character entiry ">"
        See Also:
        Constant Field Values
      • ESCAPE_BEST_PRACTICE

        public static final int ESCAPE_BEST_PRACTICE
        Same as ESCAPE_APOS|ESCAPE_GT
        See Also:
        Constant Field Values
      • ESCAPE_MINIMAL

        public static final int ESCAPE_MINIMAL
        If passed as value for the escapeMask argument in calls to escapeXMLAttribute(String s,int escapeMask), neither apostrop characters "'" not "greater" characters (">") will be quoted by character entities
        See Also:
        Constant Field Values
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • joinVeryLongString

        public static String joinVeryLongString​(String[] chunks)
        to be used for strings exceeding the compiler limit of 2^16 bytes for a string constant
      • produceCodeForAStringConstant

        public static String produceCodeForAStringConstant​(String value,
                                                           Vector<String> longStrings)
      • escapeJavaString

        public static String escapeJavaString​(String s)
      • escapeXMLAttribute

        public static String escapeXMLAttribute​(String s)
        Short for ecapeXMLAttribute(s,ESCAPE_BEST_PRACTICE)
      • escapeXMLAttribute

        public static String escapeXMLAttribute​(String s,
                                                int escapeMask)
      • escapeXMLString

        public static String escapeXMLString​(String s)
      • createInvoiceInstance

        public static AbstractInvoice createInvoiceInstance​(String specificationIdentifier)
      • getProfile

        public static com.fourjs.report.facturx.util.Util.Profile getProfile​(String specificationIdentifier)
      • getXSDFile

        public static File getXSDFile​(String specificationIdentifier)
      • getSchematronXSLTFile

        public static File getSchematronXSLTFile​(String specificationIdentifier)
      • get

        public static <E> E get​(E value,
                                E defaultValue)
      • equals

        public static boolean equals​(Object o1,
                                     Object o2)