@Override public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException { this.a.unparsedEntityDecl(name, publicId, systemId, notationName); this.b.unparsedEntityDecl(name, publicId, systemId, notationName); }
/** * Call delegated to {@link #mHandler}. * * @param name The entity name. * @param publicId The entity public identifier, or * <code>null</code> if none is available. * @param systemId The entity system identifier. * @param notationName The name of the associated notation. * * @throws SAXException if the contained hanlder throws a SAX * exception. */ @Override public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException { mHandler.unparsedEntityDecl(name,publicId,systemId,notationName); }
/** * Call delegated. * * @param name The entity name. * @param publicId The entity public identifier, or * <code>null</code> if none is available. * @param systemId The entity system identifier. * @param notationName The name of the associated notation. * * @throws SAXException if the contained hanlder throws a SAX * exception. */ @Override public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException { if (mStackTop >= 0) mDelegateStack[mStackTop] .unparsedEntityDecl(name,publicId,systemId,notationName); }
private static @Nullable SAXException unparsedEntityDecl(DefaultHandler handler, String name, String publicId, String systemId, String notationName) { try { handler.unparsedEntityDecl(name, publicId, systemId, notationName); return null; } catch (SAXException ex) { return ex; } }
@Override public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException { if (this.peekParsingInfo().parsingActive) { this.targetHandler.unparsedEntityDecl(name, publicId, systemId, notationName); } else { super.unparsedEntityDecl(name, publicId, systemId, notationName); } }
/** * Picks up unparsed entity declarations, after calling the * superclass's unparsedEntityDecl, and puts their information * into the unparsed entity declaration list as an array of * four strings: [ name, publicId, systemId, notationName]. * Null values are converted into empty strings. */ public void unparsedEntityDecl (String name, String publicId, String systemId, String notationName) throws SAXException { super.unparsedEntityDecl (name, publicId, systemId, notationName); String[] info = new String[4]; info[0] = name == null ? "" : name; info[1] = publicId == null ? "" : publicId; info[2] = systemId == null ? "" : systemId; info[3] = notationName == null ? "" : notationName; _unparsedEntities.add (info); }