Class XMLLogger

    • Constructor Detail

      • XMLLogger

        public XMLLogger​(OutputStream outputStream,
                         boolean closeStream)
        Creates a new XMLLogger instance. Sets the output to a defined stream.
        Parameters:
        outputStream - the stream to write logs to.
        closeStream - close oS in auditFinished
    • Method Detail

      • encode

        public static String encode​(String value)
        Escape <, > & ' and " as their entities.
        Parameters:
        value - the value to escape.
        Returns:
        the escaped value if necessary.
      • isReference

        public static boolean isReference​(String ent)
        Finds whether the given argument is character or entity reference.
        Parameters:
        ent - the possible entity to look for.
        Returns:
        whether the given argument a character or entity reference