bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
13,047
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
13,048
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
13,049
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
13,050
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
13,051
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,052
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,053
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,054
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,055
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,056
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,057
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,058
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,059
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,060
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
13,061
public void paint(Graphics g) { if (b != null) b.paintBorder(c, g, x, y, width - 1, height - 1); }
public void paint(Graphics g) { if (b != null) b.paintBorder(c, g, x, y, width, height); }
13,062
public void paintExcept(Graphics g, int holeX, int holeY, int holeWidth, int holeHeight) { int stripeHeight; stripeHeight = holeY - y; if (stripeHeight > 0) paint(g, x, y, width, stripeHeight); // patch #1 in the image above stripeHeight = h...
public void paintExcept(Graphics g, int holeX, int holeY, int holeWidth, int holeHeight) { int stripeHeight; stripeHeight = holeY - y; if (stripeHeight > 0) paint(g, x, y, width, stripeHeight); // patch #1 in the image above stripeHeight = h...
13,063
private String validateClassName(String cn) throws IOException { if (cn.startsWith(".") || cn.endsWith(".")) abort("MODULE_CLASS MUST NOT start or end with a '.'"); String[] tokens = cn.split("."); for (int i = 0; i < tokens.length; i++) { String t = tokens[i]; if (Character.isJavaId...
private String validateClassName(String cn) throws IOException { if (cn.startsWith(".") || cn.endsWith(".")) abort("MODULE_CLASS MUST NOT start or end with a '.'"); String[] tokens = cn.split("\\."); for (int i = 0; i < tokens.length; i++) { String t = tokens[i]; if (Character.isJava...
13,064
private String validateClassName(String cn) throws IOException { if (cn.startsWith(".") || cn.endsWith(".")) abort("MODULE_CLASS MUST NOT start or end with a '.'"); String[] tokens = cn.split("."); for (int i = 0; i < tokens.length; i++) { String t = tokens[i]; if (Character.isJavaId...
private String validateClassName(String cn) throws IOException { if (cn.startsWith(".") || cn.endsWith(".")) abort("MODULE_CLASS MUST NOT start or end with a '.'"); String[] tokens = cn.split("."); for (int i = 0; i < tokens.length; i++) { String t = tokens[i]; if (Character.isJavaId...
13,065
public abstract void put (String name, Object value);
public abstract void put (String name, boolean value);
13,066
public void useProtocolVersion(int version) throws IOException { if (version != PROTOCOL_VERSION_1 && version != PROTOCOL_VERSION_2) throw new IOException("Invalid protocol version requested."); protocolVersion = version; }
public void useProtocolVersion(int version) throws IOException { if (version != PROTOCOL_VERSION_1 && version != PROTOCOL_VERSION_2) throw new IllegalArgumentException("Invalid protocol version requested."); protocolVersion = version; }
13,067
protected void installDefaults(JScrollPane p) { scrollpane = p; UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setForeground(defaults.getColor("ScrollPane.foreground")); p.setBackground(defaults.getColor("ScrollPane.background")); p.setFont(defaults.getFont("ScrollPane.font")); p.setBo...
protected void installDefaults(JScrollPane p) { scrollpane = p; UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setForeground(defaults.getColor("ScrollPane.foreground")); p.setBackground(defaults.getColor("ScrollPane.background")); p.setFont(defaults.getFont("ScrollPane.font")); p.setBo...
13,070
public void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); popupMenu.setBackground(defaults.getColor("PopupMenu.background")); popupMenu.setBorder(defaults.getBorder("PopupMenu.border")); popupMenu.setFont(defaults.getFont("PopupMenu.font")); popupMenu.setForeground(defa...
public void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); popupMenu.setBackground(defaults.getColor("PopupMenu.background")); popupMenu.setBorder(defaults.getBorder("PopupMenu.border")); popupMenu.setFont(defaults.getFont("PopupMenu.font")); popupMenu.setForeground(defa...
13,071
public final Object getContent() throws IOException { return openConnection().getContent(); }
public Object getContent() throws IOException { return openConnection().getContent(); }
13,072
public int getDefaultPort() { return handler.getDefaultPort(); }
public int getDefaultPort() { return handler.getDefaultPort(); }
13,073
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
13,074
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
13,075
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
13,076
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
13,077
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
13,078
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
13,079
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
13,080
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
13,081
public String getUserInfo() { int at = (host == null) ? -1 : host.indexOf('@'); return at < 0 ? null : host.substring(0, at); }
public String getUserInfo() { if (userInfo != null) return userInfo; int at = (host == null) ? -1 : host.indexOf('@'); return at < 0 ? null : host.substring(0, at); }
13,082
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); this.handler = getURLStreamHandler(protocol); if (this.handler == null) throw new IOException("Handler for protocol " + protocol ...
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); this.handler = getURLStreamHandler(protocol); if (this.handler == null) throw new IOException("Handler for protocol " + protocol ...
13,083
public boolean sameFile(URL other) { return handler.sameFile(this, other); }
public boolean sameFile(URL other) { return handler.sameFile(this, other); }
13,084
protected void set(String protocol, String host, int port, String file, String ref) { // TBD: Theoretically, a poorly written StreamHandler could pass an // invalid protocol. It will cause the handler to be set to null // thus overriding a valid handler. Callers of this method should...
protected void set(String protocol, String host, int port, String file, String ref) { // TBD: Theoretically, a poorly written StreamHandler could pass an // invalid protocol. It will cause the handler to be set to null // thus overriding a valid handler. Callers of this method should...
13,085
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); } // Throw an exception if an extant security mgr precludes // setting the ...
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); } // Throw an exception if an extant security mgr precludes // setting the ...
13,087
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); } // Throw an exception if an extant security mgr precludes // setting the ...
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); // Throw an exception if an extant security mgr precludes // setting the f...
13,088
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); } // Throw an exception if an extant security mgr precludes // setting the ...
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); } // Throw an exception if an extant security mgr precludes // setting the ...
13,089
public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if ((! isBlocking()) && ava...
public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if ((! isBlocking()) && ava...
13,090
Attribute(String name, String type, boolean specified, String value) { this.name = name; this.type = type; this.specified = specified; this.value = value; int ci = name.indexOf(':'); if (ci == -1) { prefix = null; localName = name; } else ...
Attribute(String name, String type, boolean specified, String value) { this.name = name; this.type = type; this.specified = specified; this.value = value; int ci = name.indexOf(':'); if (ci == -1) { prefix = null; localName = intern(name); } else...
13,091
public boolean equals(Object other) { if (other instanceof Attribute) { return ((Attribute) other).name.equals(name); } return false; }
public boolean equals(Object other) { if (other instanceof Attribute) { Attribute a = (Attribute) other; if (namespaceAware) { if (!a.localName.equals(localName)) return false; String auri = getNamespaceURI(a.prefix); String uri = getNamespaceURI(prefix); if (uri == null && (auri == null || ...
13,092
AttributeDecl(String type, String value, int valueType, String enumeration) { this.type = type; this.value = value; this.valueType = valueType; this.enumeration = enumeration; }
AttributeDecl(String type, String value, int valueType, String enumeration, HashSet values, boolean external) { this.type = type; this.value = value; this.valueType = valueType; this.enumeration = enumeration; }
13,093
void addElementDecl(String name, String model) { if (elements.containsKey(name)) return; elements.put(name, model); entries.add("E" + name); }
void addElementDecl(String name, String text, ContentModel model) { if (elements.containsKey(name)) return; elements.put(name, model); entries.add("E" + name); }
13,095
Input(InputStream in, String publicId, String systemId, String name) { this(in, null, publicId, systemId, name, null); }
Input(InputStream in, Reader reader, String publicId, String systemId, String name, String inputEncoding, boolean report, boolean normalize) { this(in, null, publicId, systemId, name, null); }
13,097
Input(InputStream in, String publicId, String systemId, String name) { this(in, null, publicId, systemId, name, null); }
Input(InputStream in, String publicId, String systemId, String name) { if (inputEncoding == null) inputEncoding = "UTF-8"; this.inputEncoding = inputEncoding; this.publicId = publicId; this.systemId = systemId; this.name = name; this.report = report; this.normalize = normalize; if (in != null) { if (reader ...
13,098
private void detectEncoding() throws IOException { int[] signature = new int[4]; in.mark(4); for (int i = 0; i < 4; i++) signature[i] = in.read(); in.reset(); // 4-byte encodings if (equals(SIGNATURE_UCS_4_1234, signature)) setInputEncoding("UTF-32BE"); else ...
private void detectEncoding() throws IOException { int[] signature = new int[4]; in.mark(4); for (int i = 0; i < 4; i++) signature[i] = in.read(); in.reset(); // 4-byte encodings if (equals(SIGNATURE_UCS_4_1234, signature)) setInputEncoding("UTF-32BE"); else ...
13,099
private void detectEncoding() throws IOException { int[] signature = new int[4]; in.mark(4); for (int i = 0; i < 4; i++) signature[i] = in.read(); in.reset(); // 4-byte encodings if (equals(SIGNATURE_UCS_4_1234, signature)) setInputEncoding("UTF-32BE"); else ...
private void detectEncoding() throws IOException { int[] signature = new int[4]; in.mark(4); for (int i = 0; i < 4; i++) signature[i] = in.read(); in.reset(); // 4-byte encodings if (equals(SIGNATURE_UCS_4_1234, signature)) setInputEncoding("UTF-32BE"); else ...
13,100
private void detectEncoding() throws IOException { int[] signature = new int[4]; in.mark(4); for (int i = 0; i < 4; i++) signature[i] = in.read(); in.reset(); // 4-byte encodings if (equals(SIGNATURE_UCS_4_1234, signature)) setInputEncoding("UTF-32BE"); else ...
private void detectEncoding() throws IOException { int[] signature = new int[4]; in.mark(4); for (int i = 0; i < 4; i++) signature[i] = in.read(); in.reset(); // 4-byte encodings if (equals(SIGNATURE_UCS_4_1234, signature)) setInputEncoding("UTF-32BE"); else ...
13,101
void init() throws IOException { if (initialized) return; if (!forceReader && in != null) detectEncoding(); initialized = true; }
void init() throws IOException { if (initialized) return; if (in != null) detectEncoding(); initialized = true; }
13,103
void mark(int len) throws IOException { //System.out.println(" mark:"+len); markOffset = offset; markLine = line; markColumn = column; reader.mark(len); }
void mark(int len) throws IOException { //System.out.println(" mark:"+len); markOffset = offset; markLine = line; markColumn = column; if (unicodeReader != null) unicodeReader.mark(len); else in.mark(len); }
13,104
int read() throws IOException { offset++; int ret = reader.read(); //System.out.println("read1:"+((char) ret)); if (ret == 0x0d) ret = 0x0a; if (ret == 0x0a) { line++; column = 0; } else column++; return ret; }
int read() throws IOException { offset++; int ret = reader.read(); //System.out.println("read1:"+((char) ret)); if (ret == 0x0d) ret = 0x0a; if (ret == 0x0a) { line++; column = 0; } else column++; return ret; }
13,105
void reset() throws IOException { //System.out.println(" reset"); reader.reset(); offset = markOffset; line = markLine; column = markColumn; }
void reset() throws IOException { //System.out.println(" reset"); if (unicodeReader != null) unicodeReader.reset(); else in.reset(); offset = markOffset; line = markLine; column = markColumn; }
13,107
private void setInputEncoding(String encoding) throws UnsupportedEncodingException { if (!encoding.equals(inputEncoding) && reader instanceof XMLInputStreamReader) { inputEncoding = encoding; reader = new XMLInputStreamReader((XMLInputStreamReader) reader, ...
private void setInputEncoding(String encoding) throws UnsupportedEncodingException { if (!encoding.equals(inputEncoding) && reader instanceof XMLInputStreamReader) { inputEncoding = encoding; reader = new XMLInputStreamReader((XMLInputStreamReader) reader, ...
13,108
private void setInputEncoding(String encoding) throws UnsupportedEncodingException { if (!encoding.equals(inputEncoding) && reader instanceof XMLInputStreamReader) { inputEncoding = encoding; reader = new XMLInputStreamReader((XMLInputStreamReader) reader, ...
private void setInputEncoding(String encoding) throws UnsupportedEncodingException { if (!encoding.equals(inputEncoding) && reader instanceof XMLInputStreamReader) { inputEncoding = encoding; reader = new XMLInputStreamReader((XMLInputStreamReader) reader, ...
13,109
private void setInputEncoding(String encoding) throws UnsupportedEncodingException { if (!encoding.equals(inputEncoding) && reader instanceof XMLInputStreamReader) { inputEncoding = encoding; reader = new XMLInputStreamReader((XMLInputStreamReader) reader, ...
private void setInputEncoding(String encoding) throws UnsupportedEncodingException { if (!encoding.equals(inputEncoding) && reader instanceof XMLInputStreamReader) { inputEncoding = encoding; reader = new XMLInputStreamReader((XMLInputStreamReader) reader, ...
13,110
private void expandEntity(String name, boolean inAttr) throws IOException, XMLStreamException { if (doctype != null) { Object value = doctype.getEntity(name); if (value != null) { if (xmlStandalone == Boolean.TRUE) { if (doctype.isEntityExterna...
private void expandEntity(String name, boolean inAttr, boolean normalize) throws IOException, XMLStreamException { if (doctype != null) { Object value = doctype.getEntity(name); if (value != null) { if (xmlStandalone == Boolean.TRUE) { if (doct...
13,113
private void expandEntity(String name, boolean inAttr) throws IOException, XMLStreamException { if (doctype != null) { Object value = doctype.getEntity(name); if (value != null) { if (xmlStandalone == Boolean.TRUE) { if (doctype.isEntityExterna...
private void expandEntity(String name, boolean inAttr) throws IOException, XMLStreamException { if (doctype != null) { Object value = doctype.getEntity(name); if (value != null) { if (xmlStandalone == Boolean.TRUE) { if (doctype.isEntityExterna...
13,114
private void expandEntity(String name, boolean inAttr) throws IOException, XMLStreamException { if (doctype != null) { Object value = doctype.getEntity(name); if (value != null) { if (xmlStandalone == Boolean.TRUE) { if (doctype.isEntityExterna...
private void expandEntity(String name, boolean inAttr) throws IOException, XMLStreamException { if (doctype != null) { Object value = doctype.getEntity(name); if (value != null) { if (xmlStandalone == Boolean.TRUE) { if (doctype.isEntityExterna...
13,115
public String getEncoding() { if (input.forceReader) return null; return (input.inputEncoding == null) ? "UTF-8" : input.inputEncoding; }
public String getEncoding() { if (input.forceReader) return null; return (input.inputEncoding == null) ? "UTF-8" : input.inputEncoding; }
13,116
private boolean isNameCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && (c < 0x0030 || c > 0x0039) && c != ':' && c != '_' && c != '-' && c != '.' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 ||...
private boolean isNameCharacter(int c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && (c < 0x0030 || c > 0x0039) && c != ':' && c != '_' && c != '-' && c != '.' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 || ...
13,121
private boolean isNameCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && (c < 0x0030 || c > 0x0039) && c != ':' && c != '_' && c != '-' && c != '.' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 ||...
private boolean isNameCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && (c < 0x0030 || c > 0x0039) && c != ':' && c != '_' && c != '-' && c != '.' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 ||...
13,122
private boolean isNameCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && (c < 0x0030 || c > 0x0039) && c != ':' && c != '_' && c != '-' && c != '.' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 ||...
private boolean isNameCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && (c < 0x0030 || c > 0x0039) && c != ':' && c != '_' && c != '-' && c != '.' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 ||...
13,123
private boolean isNameStartCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && c != ':' && c != '_' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 || c > 0x00f6) && (c < 0x00f8 || c > 0x02ff) && ...
private boolean isNameStartCharacter(int c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && c != ':' && c != '_' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 || c > 0x00f6) && (c < 0x00f8 || c > 0x02ff) && ...
13,124
private boolean isNameStartCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && c != ':' && c != '_' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 || c > 0x00f6) && (c < 0x00f8 || c > 0x02ff) && ...
private boolean isNameStartCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && c != ':' && c != '_' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 || c > 0x00f6) && (c < 0x00f8 || c > 0x02ff) && ...
13,125
private boolean isNameStartCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && c != ':' && c != '_' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 || c > 0x00f6) && (c < 0x00f8 || c > 0x02ff) && ...
private boolean isNameStartCharacter(char c) { if (input.xml11) { if ((c < 0x0041 || c > 0x005a) && (c < 0x0061 || c > 0x007a) && c != ':' && c != '_' && (c < 0x00c0 || c > 0x00d6) && (c < 0x00d8 || c > 0x00f6) && (c < 0x00f8 || c > 0x02ff) && ...
13,126
private char literalReadCh() throws IOException, XMLStreamException { char c = readCh(); while (c == '\uffff') { if (inputStack.size() > 1) { inputStack.removeLast(); input = (Input) inputStack.getLast(); // Don't issue end-entity c = readCh()...
private int literalReadCh(boolean recognizePEs) throws IOException, XMLStreamException { char c = readCh(); while (c == '\uffff') { if (inputStack.size() > 1) { inputStack.removeLast(); input = (Input) inputStack.getLast(); // Don't issue end-entity ...
13,127
private char literalReadCh() throws IOException, XMLStreamException { char c = readCh(); while (c == '\uffff') { if (inputStack.size() > 1) { inputStack.removeLast(); input = (Input) inputStack.getLast(); // Don't issue end-entity c = readCh()...
private char literalReadCh() throws IOException, XMLStreamException { char c = readCh(); while (c == '\uffff') { if (inputStack.size() > 1) { inputStack.removeLast(); input = (Input) inputStack.getLast(); // Don't issue end-entity c = readCh()...
13,128
private char literalReadCh() throws IOException, XMLStreamException { char c = readCh(); while (c == '\uffff') { if (inputStack.size() > 1) { inputStack.removeLast(); input = (Input) inputStack.getLast(); // Don't issue end-entity c = readCh()...
private char literalReadCh() throws IOException, XMLStreamException { char c = recognizePEs ? readCh() : read(); while (c == '\uffff') { if (inputStack.size() > 1) { inputStack.removeLast(); input = (Input) inputStack.getLast(); // Don't issue end-entity...
13,129
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
13,130
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
13,131
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
13,132
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
13,133
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
13,134
private void popInput() { Input old = (Input) inputStack.removeLast(); if (!"".equals(old.name)) endEntityStack.addFirst(old.name); input = (Input) inputStack.getLast(); //System.out.print("\n(-input:"+input.systemId+")"); //System.out.println("popInput "+old.name); }
private void popInput() { Input old = (Input) inputStack.removeLast(); if (old.report) endEntityStack.addFirst(old.name); input = (Input) inputStack.getLast(); //System.out.print("\n(-input:"+input.systemId+")"); //System.out.println("popInput "+old.name); }
13,135
private void pushInput(String name, String text) throws IOException, XMLStreamException { // Check for recursion for (Iterator i = inputStack.iterator(); i.hasNext(); ) { Input ctx = (Input) i.next(); if (name.equals(ctx.name)) error("entities may not be self-recursive", name); ...
private void pushInput(String name, String text, boolean report, boolean normalize) throws IOException, XMLStreamException { // Check for recursion for (Iterator i = inputStack.iterator(); i.hasNext(); ) { Input ctx = (Input) i.next(); if (name.equals(ctx.name)) error("entities m...
13,136
private void pushInput(String name, String text) throws IOException, XMLStreamException { // Check for recursion for (Iterator i = inputStack.iterator(); i.hasNext(); ) { Input ctx = (Input) i.next(); if (name.equals(ctx.name)) error("entities may not be self-recursive", name); ...
private void pushInput(String name, String text) throws IOException, XMLStreamException { // Check for recursion for (Iterator i = inputStack.iterator(); i.hasNext(); ) { Input ctx = (Input) i.next(); if (name.equals(ctx.name)) error("entities may not be self-recursive", name); ...
13,137
private int read() throws IOException { int ret = input.read(); //System.out.println("read1:"+(char) ret); return ret; }
private int read() throws IOException { int ret = input.read(); //System.out.println("read1:"+(char) ret); return ret; }
13,138
private void readAttDef(String elementName) throws IOException, XMLStreamException { String name = readNmtoken(true); requireWhitespace(); StringBuffer acc = new StringBuffer(); String type = readAttType(acc); String enumer = null; if ("ENUMERATION".equals(type) || "NOTATION".equals(type)) ...
private void readAttDef(String elementName) throws IOException, XMLStreamException { String name = readNmtoken(true); requireWhitespace(); StringBuffer acc = new StringBuffer(); HashSet values = new HashSet(); String type = readAttType(acc, values); if (validating) { if ("ID".equals(type)) { for (Ite...
13,139
private void readAttDef(String elementName) throws IOException, XMLStreamException { String name = readNmtoken(true); requireWhitespace(); StringBuffer acc = new StringBuffer(); String type = readAttType(acc); String enumer = null; if ("ENUMERATION".equals(type) || "NOTATION".equals(type)) ...
private void readAttDef(String elementName) throws IOException, XMLStreamException { String name = readNmtoken(true); requireWhitespace(); StringBuffer acc = new StringBuffer(); String type = readAttType(acc); String enumer = null; if ("ENUMERATION".equals(type) || "NOTATION".equals(type)) ...
13,140
private String readAttType(StringBuffer acc) throws IOException, XMLStreamException { if (tryRead('(')) { readEnumeration(false, acc); return "ENUMERATION"; } else { String typeString = readNmtoken(true); if ("NOTATION".equals(typeString)) { rea...
private String readAttType(StringBuffer acc, HashSet values) throws IOException, XMLStreamException { if (tryRead('(')) { readEnumeration(false, acc); return "ENUMERATION"; } else { String typeString = readNmtoken(true); if ("NOTATION".equals(typeString)) ...
13,141
private String readAttType(StringBuffer acc) throws IOException, XMLStreamException { if (tryRead('(')) { readEnumeration(false, acc); return "ENUMERATION"; } else { String typeString = readNmtoken(true); if ("NOTATION".equals(typeString)) { rea...
private String readAttType(StringBuffer acc) throws IOException, XMLStreamException { if (tryRead('(')) { readEnumeration(false, acc, values); return "ENUMERATION"; } else { String typeString = readNmtoken(true); if ("NOTATION".equals(typeString)) { ...
13,142
private String readAttType(StringBuffer acc) throws IOException, XMLStreamException { if (tryRead('(')) { readEnumeration(false, acc); return "ENUMERATION"; } else { String typeString = readNmtoken(true); if ("NOTATION".equals(typeString)) { rea...
private String readAttType(StringBuffer acc) throws IOException, XMLStreamException { if (tryRead('(')) { readEnumeration(false, acc); return "ENUMERATION"; } else { String typeString = readNmtoken(true); if ("NOTATION".equals(typeString)) { rea...
13,143
private void readAttribute(String elementName) throws IOException, XMLStreamException { //System.err.println("readAttribute"); // Read attribute name String attributeName = readNmtoken(true); String type = getAttributeType(elementName, attributeName); readEq(); // Read literal final int flags...
private void readAttribute(String elementName) throws IOException, XMLStreamException { //System.err.println("readAttribute"); // Read attribute name String attributeName = readNmtoken(true); String type = getAttributeType(elementName, attributeName); readEq(); // Read literal final int flags...
13,144
private void readAttribute(String elementName) throws IOException, XMLStreamException { //System.err.println("readAttribute"); // Read attribute name String attributeName = readNmtoken(true); String type = getAttributeType(elementName, attributeName); readEq(); // Read literal final int flags...
private void readAttribute(String elementName) throws IOException, XMLStreamException { //System.err.println("readAttribute"); // Read attribute name String attributeName = readNmtoken(true); String type = getAttributeType(elementName, attributeName); readEq(); // Read literal final int flags...
13,145
private char readCh() throws IOException, XMLStreamException { char c = (char) read(); if (expandPE && c == '%') { if (peIsError) error("PE reference within decl in internal subset."); parsePEReference(); return readCh(); } return c; }
private int readCh() throws IOException, XMLStreamException { char c = (char) read(); if (expandPE && c == '%') { if (peIsError) error("PE reference within decl in internal subset."); parsePEReference(); return readCh(); } return c; }
13,147
private char readCh() throws IOException, XMLStreamException { char c = (char) read(); if (expandPE && c == '%') { if (peIsError) error("PE reference within decl in internal subset."); parsePEReference(); return readCh(); } return c; }
private char readCh() throws IOException, XMLStreamException { char c = (char) read(); if (expandPE && c == '%') { if (peIsError) error("PE reference within decl in internal subset."); parsePEReference(); return readCh(); } return c; }
13,148
private char readCh() throws IOException, XMLStreamException { char c = (char) read(); if (expandPE && c == '%') { if (peIsError) error("PE reference within decl in internal subset."); parsePEReference(); return readCh(); } return c; }
private char readCh() throws IOException, XMLStreamException { char c = (char) read(); if (expandPE && c == '%') { if (peIsError) error("PE reference within decl in internal subset."); expandPEReference(); return readCh(); } return c; }
13,149
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,150
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,151
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,152
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,153
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,154
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,155
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,156
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,157
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,158
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,159
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; //System.out.println("readCharData input="+input.name+" line="+input.line+" col="+...
13,160