/** * @param parent * @param entityName Name of the entity expanded to create this input * source: null when source created for the (main level) external * DTD subset entity. * @param xmlVersion Optional xml version identifier of the main parsed * document. Currently only relevant for checking that XML 1.0 document * does not include XML 1.1 external parsed entities. * If unknown, no checks will be done. */ public static ReaderSource constructEntitySource (ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, SystemId sysId, int xmlVersion, Reader r) { // true -> do close the underlying Reader at EOF ReaderSource rs = new ReaderSource (cfg, parent, entityName, pubId, sysId, r, true); if (bs != null) { rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(), -bs.getInputColumn()); } return rs; }
/** * @param parent * @param entityName Name of the entity expanded to create this input * source: null when source created for the (main level) external * DTD subset entity. * @param xmlVersion Optional xml version identifier of the main parsed * document. Currently only relevant for checking that XML 1.0 document * does not include XML 1.1 external parsed entities. * If unknown, no checks will be done. */ public static ReaderSource constructEntitySource (ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, SystemId sysId, int xmlVersion, Reader r) { // true -> do close the underlying Reader at EOF ReaderSource rs = new ReaderSource (cfg, parent, entityName, pubId, sysId, r, true); if (bs != null) { rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(), -bs.getInputColumn()); } return rs; }
/** * @param parent * @param entityName Name of the entity expanded to create this input * source: null when source created for the (main level) external * DTD subset entity. * @param xmlVersion Optional xml version identifier of the main parsed * document. Currently only relevant for checking that XML 1.0 document * does not include XML 1.1 external parsed entities. * If unknown, no checks will be done. */ public static ReaderSource constructEntitySource (ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, SystemId sysId, int xmlVersion, Reader r) { // true -> do close the underlying Reader at EOF ReaderSource rs = new ReaderSource (cfg, parent, entityName, pubId, sysId, r, true); if (bs != null) { rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(), -bs.getInputColumn()); } return rs; }
/** * @param parent * @param entityName Name of the entity expanded to create this input * source: null when source created for the (main level) external * DTD subset entity. * @param xmlVersion Optional xml version identifier of the main parsed * document. Currently only relevant for checking that XML 1.0 document * does not include XML 1.1 external parsed entities. * If unknown, no checks will be done. */ public static ReaderSource constructEntitySource (ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, SystemId sysId, int xmlVersion, Reader r) { // true -> do close the underlying Reader at EOF ReaderSource rs = new ReaderSource (cfg, parent, entityName, pubId, sysId, r, true); if (bs != null) { rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(), -bs.getInputColumn()); } return rs; }
/** * @param parent * @param entityName Name of the entity expanded to create this input * source: null when source created for the (main level) external * DTD subset entity. * @param xmlVersion Optional xml version identifier of the main parsed * document. Currently only relevant for checking that XML 1.0 document * does not include XML 1.1 external parsed entities. * If unknown, no checks will be done. */ public static ReaderSource constructEntitySource (ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, SystemId sysId, int xmlVersion, Reader r) { // true -> do close the underlying Reader at EOF ReaderSource rs = new ReaderSource (cfg, parent, entityName, pubId, sysId, r, true); if (bs != null) { rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(), -bs.getInputColumn()); } return rs; }
/** * @param parent * @param entityName Name of the entity expanded to create this input * source: null when source created for the (main level) external * DTD subset entity. * @param xmlVersion Optional xml version identifier of the main parsed * document. Currently only relevant for checking that XML 1.0 document * does not include XML 1.1 external parsed entities. * If unknown, no checks will be done. */ public static ReaderSource constructEntitySource (ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, String sysId, int xmlVersion, URL src, Reader r) { // true -> do close the underlying Reader at EOF ReaderSource rs = new ReaderSource (cfg, parent, entityName, pubId, sysId, src, r, true); if (bs != null) { rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(), -bs.getInputColumn()); } return rs; }
/** * @param parent * @param entityName Name of the entity expanded to create this input * source: null when source created for the (main level) external * DTD subset entity. * @param xmlVersion Optional xml version identifier of the main parsed * document. Currently only relevant for checking that XML 1.0 document * does not include XML 1.1 external parsed entities. * If unknown, no checks will be done. */ public static ReaderSource constructEntitySource (ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, String sysId, int xmlVersion, URL src, Reader r) { // true -> do close the underlying Reader at EOF ReaderSource rs = new ReaderSource (cfg, parent, entityName, pubId, sysId, src, r, true); if (bs != null) { rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(), -bs.getInputColumn()); } return rs; }
/** * @param parent * @param entityName Name of the entity expanded to create this input * source: null when source created for the (main level) external * DTD subset entity. * @param xmlVersion Optional xml version identifier of the main parsed * document. Currently only relevant for checking that XML 1.0 document * does not include XML 1.1 external parsed entities. * If unknown, no checks will be done. */ public static ReaderSource constructEntitySource (ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, String sysId, int xmlVersion, URL src, Reader r) { // true -> do close the underlying Reader at EOF ReaderSource rs = new ReaderSource (cfg, parent, entityName, pubId, sysId, src, r, true); if (bs != null) { rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(), -bs.getInputColumn()); } return rs; }