Interface Parser

All Known Implementing Classes:
CSSOMParser, CSSParser

public interface Parser
A low-level CSS parser.

Based on SAC's Parser interface by Philippe Le Hegaret.

Compared to SAC, this interface replaces some of the methods that use an InputSource with a Reader. The reason is that, in opinion of the NSAC author, the InputSource (a concept coming from SAX) adds bloat and in the worst case may widen the attack surface if the application using the library is somehow abused. It is generally better that the main application takes the responsibility of opening connections to files or remote sources.

The reference implementation includes the replaced InputSource methods, in case you want to use them.