These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 LSSerializerFilter class.
* is to be rejected or skipped. */ protected boolean applyFilter(Node node, int nodeType) { if (fFilter != null && (fWhatToShowFilter & nodeType) != 0) { short code = fFilter.acceptNode(node); switch (code) { case NodeFilter.FILTER_REJECT : case NodeFilter.FILTER_SKIP : return false; // skip the node default : // fall through.. } } return true; } /** * Serializes a Document Type Node. * * @param node The Docuemnt Type Node to serialize