bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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... | 21,065 |
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... | 21,066 |
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... | 21,067 |
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... | 21,068 |
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); } | 21,069 |
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... | 21,070 |
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... | 21,071 |
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... | 21,072 |
public abstract void put (String name, Object value); | public abstract void put (String name, Object value); | 21,073 |
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; } | 21,074 |
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... | 21,077 |
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... | 21,078 |
public String getAuthority() { return authority; } | public String getAuthority() { return authority; } | 21,079 |
public final Object getContent() throws IOException { return openConnection().getContent(); } | public Object getContent() throws IOException { return openConnection().getContent(); } | 21,080 |
public int getDefaultPort() { return handler.getDefaultPort(); } | public int getDefaultPort() { return handler.getDefaultPort(); } | 21,081 |
public String getQuery() { int quest = (file == null) ? -1 : file.indexOf('?'); return quest < 0 ? null : file.substring(quest + 1, file.length()); } | public String getQuery() { int quest = (file == null) ? -1 : file.indexOf('?'); return quest < 0 ? null : file.substring(quest + 1, file.length()); } | 21,082 |
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... | 21,083 |
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... | 21,084 |
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... | 21,085 |
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... | 21,086 |
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... | 21,087 |
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... | 21,088 |
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... | 21,089 |
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... | 21,090 |
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); } | 21,091 |
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 ... | 21,092 |
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 ... | 21,093 |
public boolean sameFile(URL other) { return handler.sameFile(this, other); } | public boolean sameFile(URL other) { return handler.sameFile(this, other); } | 21,094 |
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... | 21,095 |
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 ... | 21,097 |
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 fa... | 21,098 |
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 ... | 21,099 |
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 fa... | 21,100 |
private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); } | private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); } | 21,101 |
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... | 21,102 |
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... | 21,103 |
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 || ... | 21,104 |
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; } | 21,105 |
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); } | 21,107 |
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); } | 21,109 |
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 ... | 21,110 |
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 ... | 21,111 |
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 ... | 21,112 |
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 ... | 21,113 |
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 ... | 21,114 |
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 ... | 21,115 |
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; } | 21,117 |
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); } | 21,118 |
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; } | 21,119 |
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; } | 21,121 |
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, ... | 21,122 |
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, ... | 21,123 |
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, ... | 21,124 |
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... | 21,127 |
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... | 21,128 |
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... | 21,129 |
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; } | 21,130 |
public Object getProperty(String name) throws IllegalArgumentException { if (name == null) throw new IllegalArgumentException("name is null"); if (XMLInputFactory.ALLOCATOR.equals(name)) return null; if (XMLInputFactory.IS_COALESCING.equals(name)) return coalescing ? Boolean.TRUE : Boolean... | if ("gnu.xml.stream.stringInterning".equals(name)) return stringInterning ? Boolean.TRUE : Boolean.FALSE; if ("gnu.xml.stream.xmlBase".equals(name)) return baseAware ? Boolean.TRUE : Boolean.FALSE; if ("gnu.xml.stream.baseURI".equals(name)) return getXMLBase(); if ("gnu.xml.stream.stringInterning".equals(name)) return ... | 21,134 |
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 || ... | 21,135 |
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 ||... | 21,136 |
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 ||... | 21,137 |
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) && ... | 21,138 |
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) && ... | 21,139 |
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) && ... | 21,140 |
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 ... | 21,141 |
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()... | 21,142 |
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... | 21,143 |
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]), ... | 21,144 |
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]), ... | 21,145 |
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]), ... | 21,146 |
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]), ... | 21,147 |
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]), ... | 21,148 |
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]), ... | 21,149 |
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]), ... | publicstaticvoidmain(String[]args)throwsException{booleanxIncludeAware=false;if(args.length>1&&"-x".equals(args[1]))xIncludeAware=true;XMLParserp=newXMLParser(newjava.io.FileInputStream(args[0]),absolutize(null,args[0]),false,//validatingtrue,//namespaceAwaretrue,//coalescing,true,//replaceERefstrue,//externalEntitiest... | 21,150 |
private void mark(int limit) throws IOException { input.mark(limit); //System.out.println("\t(mark:"+limit+")"); } | privatevoidmark(intlimit)throwsIOException{input.mark(limit);//System.out.println("\t(mark:"+limit+")");} | 21,151 |
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); } | 21,152 |
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 (!"".equals(old.name))endEntityStack.addFirst(old.name);input = (Input) inputStack.getLast();//System.out.print("\n(-input:"+input.systemId+")"); //System.out.println("popInput "+old.name);} | 21,153 |
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... | 21,154 |
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); ... | 21,155 |
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; } | 21,156 |
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... | 21,157 |
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)) ... | 21,158 |
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)) ... | 21,159 |
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)) { ... | 21,160 |
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... | 21,161 |
private void readAttlistDecl() throws IOException, XMLStreamException { requireWhitespace(); String elementName = readNmtoken(true); boolean white = tryWhitespace(); while (!tryRead('>')) { if (!white) error("whitespace required before attribute definition"); readAttDef(ele... | privatevoidreadAttlistDecl()throwsIOException,XMLStreamException{requireWhitespace();StringelementName=readNmtoken(true);booleanwhite=tryWhitespace();while(!tryRead('>')){if(!white)error("whitespacerequiredbeforeattributedefinition");readAttDef(elementName);white=tryWhitespace();}//System.out.println("AttlistDecl"+elem... | 21,162 |
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... | privatevoidreadAttribute(StringelementName)throwsIOException,XMLStreamException{//System.err.println("readAttribute");//ReadattributenameStringattributeName=readNmtoken(true);Stringtype=getAttributeType(elementName,attributeName);readEq();//Readliteralfinalintflags=LIT_ATTRIBUTE|LIT_ENTITY_REF;Stringvalue=(type==null||... | 21,163 |
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... | 21,164 |
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... | 21,165 |
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; } | 21,167 |
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; } | 21,168 |
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; } | 21,169 |
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="+... | privateintreadCharData(Stringprefix)throwsIOException,XMLStreamException{booleanwhite=true;buf.setLength(0);if(prefix!=null)buf.append(prefix);booleandone=false;booleanentities=false;//System.out.println("readCharDatainput="+input.name+"line="+input.line+"col="+input.column);while(!done){//Blockreadmark(tmpBuf.length);... | 21,170 |
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="+... | 21,171 |
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="+... | 21,172 |
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="+... | 21,173 |
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="+... | 21,174 |
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="+... | 21,175 |
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="+... | 21,176 |
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="+... | 21,177 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.