/** * Factory method usually used to expand internal parsed entities; in * which case context remains mostly the same. */ public static WstxInputSource constructCharArraySource (WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src) { SystemId sysId = SystemId.construct(loc.getSystemId(), src); return new CharArraySource(parent, fromEntity, text, offset, len, loc, sysId); } }
public void closeCompletely() { close(); } }
public boolean readMore(WstxInputData reader, int minAmount) { /* Only case where this may work is if we haven't yet been * read from at all. And that should mean caller also has no * existing input... */ if (reader.mInputPtr >= reader.mInputEnd) { int len = mInputLast - mOffset; if (len >= minAmount) { return (readInto(reader) > 0); } } return false; }
/** * Factory method usually used to expand internal parsed entities; in * which case context remains mostly the same. */ public static WstxInputSource constructCharArraySource (WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src) { return new CharArraySource(parent, fromEntity, text, offset, len, loc, src); } }
@Override public void closeCompletely() { close(); } }
@Override public boolean readMore(WstxInputData reader, int minAmount) { /* Only case where this may work is if we haven't yet been * read from at all. And that should mean caller also has no * existing input... */ if (reader.mInputPtr >= reader.mInputEnd) { int len = mInputLast - mOffset; if (len >= minAmount) { return (readInto(reader) > 0); } } return false; }
/** * Factory method usually used to expand internal parsed entities; in * which case context remains mostly the same. */ public static WstxInputSource constructCharArraySource (WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src) { return new CharArraySource(parent, fromEntity, text, offset, len, loc, src); } }
@Override public void closeCompletely() { close(); } }
public boolean readMore(WstxInputData reader, int minAmount) { /* Only case where this may work is if we haven't yet been * read from at all. And that should mean caller also has no * existing input... */ if (reader.mInputPtr >= reader.mInputLen) { int len = mInputLen - mOffset; if (len >= minAmount) { return (readInto(reader) > 0); } } return false; }
/** * Factory method usually used to expand internal parsed entities; in * which case context remains mostly the same. */ public static WstxInputSource constructCharArraySource (WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src) { return new CharArraySource(parent, fromEntity, text, offset, len, loc, src); } }
@Override public void closeCompletely() { close(); } }
public boolean readMore(WstxInputData reader, int minAmount) { /* Only case where this may work is if we haven't yet been * read from at all. And that should mean caller also has no * existing input... */ if (reader.mInputPtr >= reader.mInputEnd) { int len = mInputLast - mOffset; if (len >= minAmount) { return (readInto(reader) > 0); } } return false; }
/** * Factory method usually used to expand internal parsed entities; in * which case context remains mostly the same. */ public static WstxInputSource constructCharArraySource (WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src) { SystemId sysId = SystemId.construct(loc.getSystemId(), src); return new CharArraySource(parent, fromEntity, text, offset, len, loc, sysId); } }
public void closeCompletely() { close(); } }
public boolean readMore(WstxInputData reader, int minAmount) { /* Only case where this may work is if we haven't yet been * read from at all. And that should mean caller also has no * existing input... */ if (reader.mInputPtr >= reader.mInputLen) { int len = mInputLen - mOffset; if (len >= minAmount) { return (readInto(reader) > 0); } } return false; }
/** * Factory method usually used to expand internal parsed entities; in * which case context remains mostly the same. */ public static WstxInputSource constructCharArraySource (WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src) { SystemId sysId = SystemId.construct(loc.getSystemId(), src); return new CharArraySource(parent, fromEntity, text, offset, len, loc, sysId); } }
public void closeCompletely() { close(); } }
public boolean readMore(WstxInputData reader, int minAmount) { /* Only case where this may work is if we haven't yet been * read from at all. And that should mean caller also has no * existing input... */ if (reader.mInputPtr >= reader.mInputLen) { int len = mInputLen - mOffset; if (len >= minAmount) { return (readInto(reader) > 0); } } return false; }
/** * Factory method usually used to expand internal parsed entities; in * which case context remains mostly the same. */ public static WstxInputSource constructCharArraySource (WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src) { SystemId sysId = SystemId.construct(loc.getSystemId(), src); return new CharArraySource(parent, fromEntity, text, offset, len, loc, sysId); } }
public void closeCompletely() { close(); } }