rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
boolean active = false; | boolean insideClip = false; boolean insideShape = false; | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... |
if (active) | if (edge.y1 <= (y + (subY / (double) AA_SAMPLING))) continue; if (insideClip && insideShape) | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... |
alpha[x0 - (int) minX]++; alpha[x1 - (int) minX + 1]--; previous = edge; active = false; | int left = x0 - (int) minX; int right = x1 - (int) minX + 1; alpha[left]++; alpha[right]--; leftX = Math.min(x0, leftX); rightX = Math.max(x1+2, rightX); emptyScanline = false; | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... |
{ if (edge.y1 > (y + (subY / (double) AA_SAMPLING))) { previous = edge; active = true; } } | insideShape = ! insideShape; | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... |
fillScanlineAA(alpha, (int) minX, (int) y, numScanlinePixels, pCtx); | if (! emptyScanline) fillScanlineAA(alpha, leftX, (int) y, rightX - leftX, pCtx, (int) minX); | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... |
if (paint instanceof Color && composite == AlphaComposite.SrcOver) rawSetForeground((Color) paint); | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | |
return new FontRenderContext(new AffineTransform(), false, false); | return new FontRenderContext(transform, false, true); | public FontRenderContext getFontRenderContext() { //return new FontRenderContext(transform, false, false); return new FontRenderContext(new AffineTransform(), false, false); } |
destinationRaster = getDestinationRaster(); | protected void init() { setPaint(Color.BLACK); setFont(new Font("SansSerif", Font.PLAIN, 12)); isOptimized = true; // FIXME: Should not be necessary. A clip of null should mean // 'clip against device bounds. clip = getDeviceBounds(); destinationRaster = getDestinationRaster(); } | |
int dy = y1 - y0; int dx = x1 - x0; int stepx, stepy; if (dy < 0) { dy = -dy; stepy = -1; | draw(new Line2D.Float(x0, y0, x1, y1)); | protected void rawDrawLine(int x0, int y0, int x1, int y1) { // This is an implementation of Bresenham's line drawing algorithm. int dy = y1 - y0; int dx = x1 - x0; int stepx, stepy; if (dy < 0) { dy = -dy; stepy = -1; } else { stepy = 1; } if (dx < 0) ... |
else { stepy = 1; } if (dx < 0) { dx = -dx; stepx = -1; } else { stepx = 1; } dy <<= 1; dx <<= 1; drawPixel(x0, y0); if (dx > dy) { int fraction = dy - (dx >> 1); while (x0 != x1) { if (fraction >= 0) { y0 += stepy; fraction -= dx; } x0 += stepx; fraction += dy; drawPixel(x0, y0); } } else { int fraction = dx - (dy >>... | protected void rawDrawLine(int x0, int y0, int x1, int y1) { // This is an implementation of Bresenham's line drawing algorithm. int dy = y1 - y0; int dx = x1 - x0; int stepx, stepy; if (dy < 0) { dy = -dy; stepy = -1; } else { stepy = 1; } if (dx < 0) ... | |
int x2 = x + w; int y2 = y + h; for (int xc = x; xc < x2; xc++) { for (int yc = y; yc < y2; yc++) { drawPixel(xc, yc); } } | fill(new Rectangle(x, y, w, h)); | protected void rawFillRect(int x, int y, int w, int h) { int x2 = x + w; int y2 = y + h; for (int xc = x; xc < x2; xc++) { for (int yc = y; yc < y2; yc++) { drawPixel(xc, yc); } } } |
clipTransform.scale(-scaleX, -scaleY); | clipTransform.scale(1 / scaleX, 1 / scaleY); | public void scale(double scaleX, double scaleY) { transform.scale(scaleX, scaleY); if (clip != null) { AffineTransform clipTransform = new AffineTransform(); clipTransform.scale(-scaleX, -scaleY); updateClip(clipTransform); } updateOptimization(); } |
rawSetForeground((Color) paint); | public void setPaint(Paint p) { if (p != null) { paint = p; if (! (paint instanceof Color)) isOptimized = false; else { updateOptimization(); rawSetForeground((Color) paint); } } } | |
public Area(Shape s) | public Area() | public Area(Shape s) { this(); Vector p = makeSegment(s); // empty path if (p == null) return; // delete empty paths for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting ... |
this(); Vector p = makeSegment(s); if (p == null) return; for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); Vector paths = new Vector(); Segment v; for (int i = 0; i < p.size(); i++) { Segment path = (Segment) p.elementAt(i); createNodesSelf(path); } if (p... | solids = new Vector(); holes = new Vector(); | public Area(Shape s) { this(); Vector p = makeSegment(s); // empty path if (p == null) return; // delete empty paths for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting ... |
public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i) | public GlyphVector createGlyphVector (FontRenderContext ctx, String str) | public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i){ return peer.createGlyphVector (this, ctx, i);} |
return peer.createGlyphVector (this, ctx, i); | return peer.createGlyphVector (this, ctx, new StringCharacterIterator (str)); | public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i){ return peer.createGlyphVector (this, ctx, i);} |
PolyEdge(double x0, double y0, double x1, double y1) | PolyEdge(double x0, double y0, double x1, double y1, boolean clip) | PolyEdge(double x0, double y0, double x1, double y1) { if (y0 < y1) { this.x0 = x0; this.y0 = y0; this.x1 = x1; this.y1 = y1; } else { this.x0 = x1; this.y0 = y1; this.x1 = x0; this.y1 = y0; } slope = (this.x1 - this.x0) / (this.y1 ... |
isClip = clip; | PolyEdge(double x0, double y0, double x1, double y1) { if (y0 < y1) { this.x0 = x0; this.y0 = y0; this.x1 = x1; this.y1 = y1; } else { this.x0 = x1; this.y0 = y1; this.x1 = x0; this.y1 = y0; } slope = (this.x1 - this.x0) / (this.y1 ... | |
public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) | protected FontRenderContext() | public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) { if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetric... |
if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetrics = usesFractionalMetrics; | public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) { if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetric... | |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new WhenNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new WhenNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | |
{ | public boolean references(QName var) { if (test != null && test.references(var)) { return true; } return super.references(var); } | |
} | public boolean references(QName var) { if (test != null && test.references(var)) { return true; } return super.references(var); } | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("when"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("test="); buf.append(test); buf.append(']'); return buf.toString(); } |
} | public void insertUpdate(DocumentEvent event) { int dot = getDot(); setDot(dot + event.getLength()); } | |
else if (policy == NEVER_UPDATE) { int docLength = event.getDocument().getLength(); if (getDot() > docLength) setDot(docLength); } } | public void removeUpdate(DocumentEvent event) { int dot = getDot(); setDot(dot - event.getLength()); } | |
if (!(event.getButton() == MouseEvent.BUTTON1)) return; setDot(textComponent.viewToModel(event.getPoint())); | public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. } | |
if (textComponent != null) textComponent.repaint(); | textComponent.repaint(this); | protected final void repaint() { // FIXME: Is this good? This possibly causes alot of the component // hierarchy to be repainted on every caret blink. if (textComponent != null) textComponent.repaint(); } |
} | public void setVisible(boolean v) { visible = v; repaint(); } | |
public CannotProceedHolder(CannotProceed initialValue) | public CannotProceedHolder() | public CannotProceedHolder(CannotProceed initialValue) { value = initialValue; } |
value = initialValue; | public CannotProceedHolder(CannotProceed initialValue) { value = initialValue; } | |
ShortSeqHolder h = new ShortSeqHolder(); h._read(input); return h.value; | short[] value = new short[ input.read_long() ]; input.read_short_array(value, 0, value.length); return value; | public static short[] read(InputStream input) { ShortSeqHolder h = new ShortSeqHolder(); h._read(input); return h.value; } |
ShortSeqHolder h = new ShortSeqHolder(value); h._write(output); | output.write_long(value.length); output.write_short_array(value, 0, value.length); | public static void write(OutputStream output, short[] value) { ShortSeqHolder h = new ShortSeqHolder(value); h._write(output); } |
if (y < 0) y = Integer.MAX_VALUE; | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; Component[] children = parent.getComponents(); if (isHorizontalI... | |
arrowIcon.paintIcon(m, g, vr.width - width + defaultTextIconGap, vr.y + 2); | int offset = (vr.height - height) / 2; arrowIcon.paintIcon(m, g, vr.width - width, vr.y + offset); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
public boolean isContentAreaFilled() { return false; } | public boolean isContentAreaFilled() { return content_area_filled; } | public boolean isContentAreaFilled() { // Checks whether the "content area" of the button should be filled. return false; } |
} else { frameActions.show(frame.getDesktopPane(), event.getX(), event.getY()); | } else { Point p = FrameWrapper.this.getLocationOnScreen(); int h = frameActions.getPreferredSize().height; frameActions.show(frame.getDesktopPane(), p.x, p.y - h); | public FrameWrapper(JInternalFrame iFrame) { this.frame = iFrame; this.setText(iFrame.getTitle()); this.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { try { JInternalFrame frame =... |
} else { frameActions.show(frame.getDesktopPane(), event.getX(), event.getY()); | } else { Point p = FrameWrapper.this.getLocationOnScreen(); int h = frameActions.getPreferredSize().height; frameActions.show(frame.getDesktopPane(), p.x, p.y - h); | public void mousePressed(MouseEvent event) { if(event.getButton() == MouseEvent.BUTTON2){ if (frameActions .isShowing()) { frameActions .setVisible(false); } else { ... |
throws NotImplementedException | public BufferCapabilities getBufferCapabilities() { throw new Error("not implemented"); } | |
throws NotImplementedException | public ImageCapabilities getImageCapabilities() { throw new Error("not implemented"); } | |
throw new CertificateException("not implemented"); | return certFacSpi.engineGenerateCertPath(inStream); | public final CertPath generateCertPath(InputStream inStream) throws CertificateException { throw new CertificateException("not implemented"); } |
if (undo != null) event.addEdit(undo); | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | |
public Icon getPressedIcon() { return pressed_button; } | public Icon getPressedIcon() { return pressed_icon; } | public Icon getPressedIcon() { return pressed_button; } |
Icon getRolloverSelectedIcon() { return null; } | public Icon getRolloverSelectedIcon() { return rollover_selected_icon; } | Icon getRolloverSelectedIcon() { // Returns the rollover selection icon for the button. return null; } |
public Icon getRolloverIcon() { return null; } | public Icon getRolloverIcon() { return rollover_icon; } | public Icon getRolloverIcon() { // Returns the rollover icon for the button. return null; } |
Icon getSelectedIcon() { return selected_button; } | public Icon getSelectedIcon() { return selected_icon; } | Icon getSelectedIcon() { // Returns the selected icon for the button. return selected_button; } |
public Icon getDisabledSelectedIcon() { return disabled_selected_button; } | public Icon getDisabledSelectedIcon() { return disabled_selected_icon; } | public Icon getDisabledSelectedIcon() { //Returns the icon used by the button when it's disabled and selected. return disabled_selected_button; } |
public Icon getDisabledIcon() { return disabled_button; } | public Icon getDisabledIcon() { return disabled_icon; } | public Icon getDisabledIcon() { return disabled_button; } |
public void addChangeListener(ChangeListener l) { getModel().addChangeListener(l); } | public void addChangeListener(ChangeListener l) { listenerList.add(ChangeListener.class, l); } | public void addChangeListener(ChangeListener l) { getModel().addChangeListener(l); } |
public void removeChangeListener(ChangeListener l) { getModel().removeChangeListener(l); } | public void removeChangeListener(ChangeListener l) { listenerList.remove(ChangeListener.class, l); } | public void removeChangeListener(ChangeListener l) { getModel().removeChangeListener(l); } |
public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa | public gnuServantObject(String[] a_repository_ids, byte[] an_id, gnuPOA a_poa, ORB_1_4 an_orb | public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) { manager = poa.the_POAManager(); } else { manager = null; } repo... |
setServant(a_servant); | manager = a_poa.the_POAManager(); | public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) { manager = poa.the_POAManager(); } else { manager = null; } repo... |
if (poa != null) { manager = poa.the_POAManager(); } else { manager = null; } repository_ids = null; | public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) { manager = poa.the_POAManager(); } else { manager = null; } repo... | |
noRetain = poa.applies(ServantRetentionPolicyValue.NON_RETAIN); | public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) { manager = poa.the_POAManager(); } else { manager = null; } repo... | |
this.lo = (insens = ins) ? Character.toLowerCase(lo) : lo; this.hi = ins ? Character.toLowerCase(hi) : hi; | insens = ins; this.lo = lo; this.hi = hi; | RETokenRange(int subIndex, char lo, char hi, boolean ins) { super(subIndex); this.lo = (insens = ins) ? Character.toLowerCase(lo) : lo; this.hi = ins ? Character.toLowerCase(hi) : hi; } |
if (insens) c = Character.toLowerCase(c); if ((c >= lo) && (c <= hi)) { | boolean matches = (c >= lo) && (c <= hi); if (! matches && insens) { char c1 = Character.toLowerCase(c); matches = (c1 >= lo) && (c1 <= hi); if (!matches) { c1 = Character.toUpperCase(c); matches = (c1 >= lo) && (c1 <= hi); } } if (matches) { | boolean match(CharIndexed input, REMatch mymatch) { char c = input.charAt(mymatch.index); if (c == CharIndexed.OUT_OF_BOUNDS) return false; if (insens) c = Character.toLowerCase(c); if ((c >= lo) && (c <= hi)) { ++mymatch.index; return next(input, mymatch); } return false; } |
public void characters (char buf [], int offset, int len) | public void characters(char[] buf, int offset, int len) | public void characters (char buf [], int offset, int len) throws SAXException { docHandler.characters (buf, offset, len); } |
public void ignorableWhitespace (char buf [], int offset, int len) | public void ignorableWhitespace(char[] buf, int offset, int len) | public void ignorableWhitespace (char buf [], int offset, int len) throws SAXException { docHandler.ignorableWhitespace (buf, offset, len); } |
try { if (baseURI == null) { | try { if (baseURI == null && XmlParser.uriWarnings) { | String absolutize (String baseURI, String systemId, boolean nice) throws MalformedURLException, SAXException { // FIXME normalize system IDs -- when? // - Convert to UTF-8 // - Map reserved and non-ASCII characters to %HH try { if (baseURI == null) { warn ("No base URI; hope this SYSTEM id is absolute: "... |
return new URL (systemId).toString (); } else return new URL (new URL (baseURI), systemId).toString (); } catch (MalformedURLException e) { | return new URL(systemId).toString(); } else { return new URL(new URL(baseURI), systemId).toString(); } } catch (MalformedURLException e) { | String absolutize (String baseURI, String systemId, boolean nice) throws MalformedURLException, SAXException { // FIXME normalize system IDs -- when? // - Convert to UTF-8 // - Map reserved and non-ASCII characters to %HH try { if (baseURI == null) { warn ("No base URI; hope this SYSTEM id is absolute: "... |
prefixStack.pushContext (); | { prefixStack.pushContext(); } | void attribute (String qname, String value, boolean isSpecified) throws SAXException { if (!attributes) { attributes = true; if (namespaces) prefixStack.pushContext (); } // process namespace decls immediately; // then maybe forget this as an attribute if (namespaces) { int index; // default... |
if (getFeature (FEATURE + "string-interning")) { if ("xmlns" == qname) { declarePrefix ("", value); | if (stringInterning) { if ("xmlns" == qname) { declarePrefix("", value); | void attribute (String qname, String value, boolean isSpecified) throws SAXException { if (!attributes) { attributes = true; if (namespaces) prefixStack.pushContext (); } // process namespace decls immediately; // then maybe forget this as an attribute if (namespaces) { int index; // default... |
fatal ("missing prefix in namespace declaration attribute"); if (value.length () == 0) { verror ("missing URI in namespace declaration attribute: " | { fatal("missing prefix " + "in namespace declaration attribute"); } if (value.length() == 0) { verror("missing URI in namespace declaration attribute: " | void attribute (String qname, String value, boolean isSpecified) throws SAXException { if (!attributes) { attributes = true; if (namespaces) prefixStack.pushContext (); } // process namespace decls immediately; // then maybe forget this as an attribute if (namespaces) { int index; // default... |
} else declarePrefix (prefix, value); | } else { declarePrefix(prefix, value); } | void attribute (String qname, String value, boolean isSpecified) throws SAXException { if (!attributes) { attributes = true; if (namespaces) prefixStack.pushContext (); } // process namespace decls immediately; // then maybe forget this as an attribute if (namespaces) { int index; // default... |
} else { if ("xmlns".equals(qname)) { declarePrefix ("", value); | } } else { if ("xmlns".equals(qname)) { declarePrefix("", value); | void attribute (String qname, String value, boolean isSpecified) throws SAXException { if (!attributes) { attributes = true; if (namespaces) prefixStack.pushContext (); } // process namespace decls immediately; // then maybe forget this as an attribute if (namespaces) { int index; // default... |
void charData (char ch[], int start, int length) | void charData(char[] ch, int start, int length) | void charData (char ch[], int start, int length) throws SAXException { contentHandler.characters (ch, start, length); } |
void comment (char ch[], int start, int length) | void comment(char[] ch, int start, int length) | void comment (char ch[], int start, int length) throws SAXException { if (lexicalHandler != base) lexicalHandler.comment (ch, start, length); } |
lexicalHandler.comment (ch, start, length); | { lexicalHandler.comment(ch, start, length); } | void comment (char ch[], int start, int length) throws SAXException { if (lexicalHandler != base) lexicalHandler.comment (ch, start, length); } |
if (index < 1 && uri.length () != 0) warn ("relative URI for namespace: " + uri); | if (index < 1 && uri.length() != 0) { warn("relative URI for namespace: " + uri); } | private void declarePrefix (String prefix, String uri) throws SAXException { int index = uri.indexOf (':'); // many versions of nwalsh docbook stylesheets // have bogus URLs; so this can't be an error... if (index < 1 && uri.length () != 0) warn ("relative URI for namespace: " + uri); // FIXME: char [0]... |
fatal ("xml is by definition bound to the namespace name " + | { fatal("xml is by definition bound to the namespace name " + | private void declarePrefix (String prefix, String uri) throws SAXException { int index = uri.indexOf (':'); // many versions of nwalsh docbook stylesheets // have bogus URLs; so this can't be an error... if (index < 1 && uri.length () != 0) warn ("relative URI for namespace: " + uri); // FIXME: char [0]... |
while (prefixes.hasMoreElements ()) handler.endPrefixMapping ((String) prefixes.nextElement ()); prefixStack.popContext (); | while (prefixes.hasMoreElements()) { handler.endPrefixMapping((String) prefixes.nextElement()); } prefixStack.popContext(); | void endElement (String elname) throws SAXException { ContentHandler handler = contentHandler; if (!namespaces) { handler.endElement ("", "", elname); return; } prefixStack.processName (elname, nsTemp, false); handler.endElement (nsTemp [0], nsTemp [1], elname); Enumeration prefixes = prefixStack.getD... |
if (!"[document]".equals (name)) lexicalHandler.endEntity (name); entityStack.pop (); | if (!"[document]".equals(name)) { lexicalHandler.endEntity(name); } entityStack.pop(); | void endExternalEntity (String name) throws SAXException { if (!"[document]".equals (name)) lexicalHandler.endEntity (name); entityStack.pop (); } |
return contentHandler == base ? null : contentHandler; | return (contentHandler == base) ? null : contentHandler; | public ContentHandler getContentHandler () { return contentHandler == base ? null : contentHandler; } |
public ErrorHandler getErrorHandler () { return errorHandler == base ? null : errorHandler; } | public ErrorHandler getErrorHandler() { return (errorHandler == base) ? null : errorHandler; } | public ErrorHandler getErrorHandler () { return errorHandler == base ? null : errorHandler; } |
return resolver2.getExternalSubset (name, baseURI); | } return resolver2.getExternalSubset(name, baseURI); | InputSource getExternalSubset (String name, String baseURI) throws SAXException, IOException { if (resolver2 == null || !useResolver2 || !extPE) return null; return resolver2.getExternalSubset (name, baseURI); } |
if ((FEATURE + "validation").equals (featureId)) | if ((FEATURE + "validation").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "external-general-entities").equals (featureId)) | if ((FEATURE + "external-general-entities").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "external-parameter-entities") .equals (featureId)) | } if ((FEATURE + "external-parameter-entities").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "namespace-prefixes").equals (featureId)) | if ((FEATURE + "namespace-prefixes").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "namespaces").equals (featureId)) | if ((FEATURE + "namespaces").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "lexical-handler/parameter-entities").equals (featureId)) | if ((FEATURE + "lexical-handler/parameter-entities").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "string-interning").equals (featureId)) | if ((FEATURE + "string-interning").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "use-attributes2").equals (featureId)) | if ((FEATURE + "use-attributes2").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
throw new SAXNotSupportedException (featureId); return parser.isStandalone (); | { throw new SAXNotSupportedException(featureId); } return parser.isStandalone(); | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "resolve-dtd-uris").equals (featureId)) | if ((FEATURE + "resolve-dtd-uris").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
if ((FEATURE + "use-entity-resolver2").equals (featureId)) | if ((FEATURE + "use-entity-resolver2").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extG... |
for (int i = 0; i < length; i++) { if (!getURI (i).equals (uri)) | for (int i = 0; i < length; i++) { if (!getURI(i).equals(uri)) { | public int getIndex (String uri, String local) { int length = getLength (); for (int i = 0; i < length; i++) { if (!getURI (i).equals (uri)) continue; if (getLocalName (i).equals (local)) return i; } return -1; } |
if (getLocalName (i).equals (local)) | } if (getLocalName(i).equals(local)) { | public int getIndex (String uri, String local) { int length = getLength (); for (int i = 0; i < length; i++) { if (!getURI (i).equals (uri)) continue; if (getLocalName (i).equals (local)) return i; } return -1; } |
} | public int getIndex (String uri, String local) { int length = getLength (); for (int i = 0; i < length; i++) { if (!getURI (i).equals (uri)) continue; if (getLocalName (i).equals (local)) return i; } return -1; } | |
public String getLocalName (int index) | public String getLocalName(int index) { if (index < 0 || index >= attributesList.size()) | public String getLocalName (int index) { Attribute attr = (Attribute) attributesList.get (index); // FIXME attr.localName is sometimes null, why? if (namespaces && attr.localName == null) { // XXX fix this here for now int ci = attr.name.indexOf(':'); ... |
Attribute attr = (Attribute) attributesList.get (index); | return null; } Attribute attr = (Attribute) attributesList.get(index); | public String getLocalName (int index) { Attribute attr = (Attribute) attributesList.get (index); // FIXME attr.localName is sometimes null, why? if (namespaces && attr.localName == null) { // XXX fix this here for now int ci = attr.name.indexOf(':'); ... |
return attr.localName; | return (attr.localName == null) ? "" : attr.localName; | public String getLocalName (int index) { Attribute attr = (Attribute) attributesList.get (index); // FIXME attr.localName is sometimes null, why? if (namespaces && attr.localName == null) { // XXX fix this here for now int ci = attr.name.indexOf(':'); ... |
public String getName (int i) | public String getName(int index) | public String getName (int i) { return ((Attribute) attributesList.get (i)).name; } |
return ((Attribute) attributesList.get (i)).name; | return getQName(index); | public String getName (int i) { return ((Attribute) attributesList.get (i)).name; } |
if ((PROPERTY + "declaration-handler").equals (propertyId)) return declHandler == base ? null : declHandler; | if ((PROPERTY + "declaration-handler").equals(propertyId)) { return (declHandler == base) ? null : declHandler; } | public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((PROPERTY + "declaration-handler").equals (propertyId)) return declHandler == base ? null : declHandler; if ((PROPERTY + "lexical-handler").equals (propertyId)) return lexicalHandler == base ? null : lexicalHandler; ... |
if ((PROPERTY + "lexical-handler").equals (propertyId)) return lexicalHandler == base ? null : lexicalHandler; | if ((PROPERTY + "lexical-handler").equals(propertyId)) { return (lexicalHandler == base) ? null : lexicalHandler; } | public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((PROPERTY + "declaration-handler").equals (propertyId)) return declHandler == base ? null : declHandler; if ((PROPERTY + "lexical-handler").equals (propertyId)) return lexicalHandler == base ? null : lexicalHandler; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.