rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
tree.setRootVisible(true);
public void installUI(JComponent c) { tree = (JTree) c; configureLayoutCache(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background"...
public TreePath(Object element) {
public TreePath(Object[] path) {
public TreePath(Object element) { // Create Path path = new Object[1]; path[0] = element; } // TreePath()
path = new Object[1]; path[0] = element; }
this.path = new Object[path.length]; System.arraycopy(path, 0, this.path, 0, path.length); }
public TreePath(Object element) { // Create Path path = new Object[1]; path[0] = element; } // TreePath()
public void removeCellEditorListener(CellEditorListener listener);
void removeCellEditorListener(CellEditorListener listener);
public void removeCellEditorListener(CellEditorListener listener);
{
void convertCdataSectionElements(Document doc, Node node, List list) { if (node.getNodeType() == Node.ELEMENT_NODE) { boolean match = false; for (Iterator i = list.iterator(); i.hasNext(); ) { QName qname = (QName) i.next(); if (match(qname, node)) { ...
}
void convertCdataSectionElements(Document doc, Node node, List list) { if (node.getNodeType() == Node.ELEMENT_NODE) { boolean match = false; for (Iterator i = list.iterator(); i.hasNext(); ) { QName qname = (QName) i.next(); if (match(qname, node)) { ...
{
public Object getParameter(String name) { if (stylesheet != null) { return stylesheet.bindings.get(new QName(null, name), null, 1, 1); } return null; }
}
public Object getParameter(String name) { if (stylesheet != null) { return stylesheet.bindings.get(new QName(null, name), null, 1, 1); } return null; }
{
boolean match(QName qname, Node node) { String ln1 = qname.getLocalPart(); String ln2 = node.getLocalName(); if (ln2 == null) { return ln1.equals(node.getNodeName()); } else { String uri1 = qname.getNamespaceURI(); String uri2 = node.getNamespaceURI(); return (u...
}
boolean match(QName qname, Node node) { String ln1 = qname.getLocalPart(); String ln2 = node.getLocalName(); if (ln2 == null) { return ln1.equals(node.getNodeName()); } else { String uri1 = qname.getNamespaceURI(); String uri2 = node.getNamespaceURI(); return (u...
{
void reindent(Document doc, Node node, int offset) { if (node.hasChildNodes()) { boolean markupContent = false; boolean textContent = false; List children = new LinkedList(); Node ctx = node.getFirstChild(); while (ctx != null) { switch (ctx.getNodeType(...
}
void reindent(Document doc, Node node, int offset) { if (node.hasChildNodes()) { boolean markupContent = false; boolean textContent = false; List children = new LinkedList(); Node ctx = node.getFirstChild(); while (ctx != null) { switch (ctx.getNodeType(...
{
public void setOutputProperties(Properties oformat) throws IllegalArgumentException { if (oformat == null) { outputProperties.clear(); } else { outputProperties.putAll(oformat); } }
}
public void setOutputProperties(Properties oformat) throws IllegalArgumentException { if (oformat == null) { outputProperties.clear(); } else { outputProperties.putAll(oformat); } }
{
public void setParameter(String name, Object value) { if (stylesheet != null) { stylesheet.bindings.set(new QName(null, name), value, Bindings.PARAM); } }
}
public void setParameter(String name, Object value) { if (stylesheet != null) { stylesheet.bindings.set(new QName(null, name), value, Bindings.PARAM); } }
void strip(Node node)
static boolean strip(Stylesheet stylesheet, Node node)
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
if (child != null) { strip(child); }
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
parent.insertBefore(child, node);
if (nextSibling != null) parent.insertBefore(child, nextSibling); else parent.appendChild(child);
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
parent.removeChild(node);
return true;
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
if (!stylesheet.isPreserved((Text) node))
String text = node.getNodeValue(); String[] tokens = tokenizeWhitespace(text); if (tokens.length > 1)
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
node.getParentNode().removeChild(node);
node.setNodeValue(tokens[0]); Node parent = node.getParentNode(); Node nextSibling = node.getNextSibling(); Document doc = node.getOwnerDocument(); for (int i = 1; i < tokens.length; i++) { Node newChild = (nt == Node.CDATA_SECTION_NODE) ? doc.createCDATASection(tokens[i]) : doc.createTextNode(tokens[i]); if (nextSibli...
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
String text = node.getNodeValue(); String stripped = text.trim(); if (!text.equals(stripped))
Node child = node.getFirstChild(); while (child != null)
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
node.setNodeValue(stripped);
boolean remove = strip(stylesheet, child); Node next = child.getNextSibling(); if (remove) node.removeChild(child); child = next;
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
else { for (Node child = node.getFirstChild(); child != null; child = child.getNextSibling()) { strip(child); } } }
void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ...
strip(context);
strip(stylesheet, context);
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
{
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
}
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
} else {
else
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
if ((publicId != null || systemId != null) && root != null)
if (publicId != null || systemId != null) { if (root != null)
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
resultDoc.appendChild(new DomDoctype(resultDoc,
DocumentType doctype = new DomDoctype(resultDoc,
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
systemId));
systemId); resultDoc.insertBefore(doctype, root); }
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
impl.createDocumentType(resultDoc.getNodeName(),
impl.createDocumentType(root.getNodeName(),
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
Node ctx = parent.getFirstChild(); for (; ctx != null && ctx.getNodeType() != Node.ELEMENT_NODE; ctx = ctx.getNextSibling()) { } if (ctx != null) { parent.insertBefore(doctype, ctx); } else { parent.appendChild(doctype);
resultDoc.insertBefore(doctype, root);
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
strip(parent);
strip(stylesheet, parent);
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
{
void writeStreamResult(Node node, StreamResult sr, int outputMethod, String encoding) throws IOException { OutputStream out = null; boolean created = false; try { out = sr.getOutputStream(); if (out == null) { Writer writer = sr.getWriter(); ...
}
void writeStreamResult(Node node, StreamResult sr, int outputMethod, String encoding) throws IOException { OutputStream out = null; boolean created = false; try { out = sr.getOutputStream(); if (out == null) { Writer writer = sr.getWriter(); ...
public abstract void setOutputProperties(Properties outputformat)
public abstract void setOutputProperties(Properties oformat)
public abstract void setOutputProperties(Properties outputformat) throws IllegalArgumentException;
public abstract void transform(Source source, Result result) throws TransformerException;
public abstract void transform(Source xmlSource, Result outputTarget) throws TransformerException;
public abstract void transform(Source source, Result result) throws TransformerException;
public LexicalHandler getLexicalHandler() { return lexhandler;
public LexicalHandler getLexicalHandler() { return lexicalHandler;
public LexicalHandler getLexicalHandler() { return lexhandler; }
public URLConnection openConnection() throws IOException { return handler.openConnection(this);
public URLConnection openConnection() throws IOException { return ph.openConnection(this);
public URLConnection openConnection() throws IOException { return handler.openConnection(this); }
public String getPath() { int quest = (file == null) ? -1 : file.indexOf('?');
public String getPath() { if (file == null) return null; int quest = file.indexOf('?');
public String getPath() { int quest = (file == null) ? -1 : file.indexOf('?'); return quest < 0 ? getFile() : file.substring(0, quest); }
public static final String toString(byte[] ba, int offset, int length)
public static String toString(byte[] ba)
public static final String toString(byte[] ba, int offset, int length) { char[] buf = new char[length * 2]; for (int i = 0, j = 0, k; i < length;) { k = ba[offset + i++]; buf[j++] = HEX_DIGITS[(k >>> 4) & 0x0F]; buf[j++] = HEX_DIGITS[k & 0x0F]; } return new String(buf); }
char[] buf = new char[length * 2]; for (int i = 0, j = 0, k; i < length;) { k = ba[offset + i++]; buf[j++] = HEX_DIGITS[(k >>> 4) & 0x0F]; buf[j++] = HEX_DIGITS[k & 0x0F]; } return new String(buf);
return toString(ba, 0, ba.length);
public static final String toString(byte[] ba, int offset, int length) { char[] buf = new char[length * 2]; for (int i = 0, j = 0, k; i < length;) { k = ba[offset + i++]; buf[j++] = HEX_DIGITS[(k >>> 4) & 0x0F]; buf[j++] = HEX_DIGITS[k & 0x0F]; } return new String(buf); }
public DERValue read() throws IOException
public static DERValue read(byte[] encoded) throws IOException
public DERValue read() throws IOException { int tag = in.read(); if (tag == -1) throw new EOFException(); encBuf.write(tag); int len = readLength(); DERValue value = null; if ((tag & CONSTRUCTED) == CONSTRUCTED) { in.mark(2048); byte[] encoded = new byte[len]; in.read...
int tag = in.read(); if (tag == -1) throw new EOFException(); encBuf.write(tag); int len = readLength(); DERValue value = null; if ((tag & CONSTRUCTED) == CONSTRUCTED) { in.mark(2048); byte[] encoded = new byte[len]; in.read(encoded); encBuf.write(encoded); value = new DERValue(tag, len, CONSTRUCTED_VALUE, encBuf.toByt...
return new DERReader(encoded).read();
public DERValue read() throws IOException { int tag = in.read(); if (tag == -1) throw new EOFException(); encBuf.write(tag); int len = readLength(); DERValue value = null; if ((tag & CONSTRUCTED) == CONSTRUCTED) { in.mark(2048); byte[] encoded = new byte[len]; in.read...
catch (NoSuchAlgorithmException ignored) {}
catch (NoSuchAlgorithmException e) { }
public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} } throw new NoSuchAlgorith...
catch (NoSuchAlgorithmException ignored) {}
catch (NoSuchAlgorithmException e) { }
public static Signature getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} }...
public FileInputStream(File file) throws FileNotFoundException
public FileInputStream(String name) throws FileNotFoundException
public FileInputStream(File file) throws FileNotFoundException { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkRead(file.getPath()); ch = FileChannelImpl.create(file, FileChannelImpl.READ); }
SecurityManager s = System.getSecurityManager(); if (s != null) s.checkRead(file.getPath()); ch = FileChannelImpl.create(file, FileChannelImpl.READ);
this(new File(name));
public FileInputStream(File file) throws FileNotFoundException { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkRead(file.getPath()); ch = FileChannelImpl.create(file, FileChannelImpl.READ); }
catch (KeyStoreException ignore)
catch (KeyStoreException e)
public static KeyStore getInstance(String type) throws KeyStoreException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (KeyStoreException ignore) { } } throw ...
NumberNode(TemplateNode children, TemplateNode next, Expr value, TemplateNode format, String lang,
NumberNode(Expr value, TemplateNode format, String lang,
NumberNode(TemplateNode children, TemplateNode next, Expr value, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, groupingSize); this.value = value; }
super(children, next, format, lang, letterValue, groupingSeparator, groupingSize);
super(format, lang, letterValue, groupingSeparator, groupingSize);
NumberNode(TemplateNode children, TemplateNode next, Expr value, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, groupingSize); this.value = value; }
return new NumberNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), value.clone(stylesheet),
TemplateNode ret = new NumberNode(value.clone(stylesheet),
TemplateNode clone(Stylesheet stylesheet) { return new NumberNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), value.clone(stylesheet), ...
if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
TemplateNode clone(Stylesheet stylesheet) { return new NumberNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), value.clone(stylesheet), ...
public Iterator iterator() {
public Iterator<IndexEntry> iterator() {
public Iterator iterator() { final int headerOffset = getAttributeOffset() + IndexRoot.SIZE; return new IndexEntryIterator(getFileRecord(), this, headerOffset + getHeader() .getFirstEntryOffset()); }
boolean modified = false;
protected void doDrawAlphaRaster(Raster raster, int srcX, int srcY, int dstX, int dstY, int width, int height, int color) { final byte[] buf = new byte[width]; final int[] pixels = new int[width]; final int c1 = color & 0xFF; final int c2 = ...
final int dst = pixels[i];
protected void doDrawAlphaRaster(Raster raster, int srcX, int srcY, int dstX, int dstY, int width, int height, int color) { final byte[] buf = new byte[width]; final int[] pixels = new int[width]; final int c1 = color & 0xFF; final int c2 = ...
final int d1 = (dst & 0xFF); final int d2 = (dst >> 8) & 0xFF; final int d3 = (dst >> 16) & 0xFF;
protected void doDrawAlphaRaster(Raster raster, int srcX, int srcY, int dstX, int dstY, int width, int height, int color) { final byte[] buf = new byte[width]; final int[] pixels = new int[width]; final int c1 = color & 0xFF; final int c2 = ...
final int r1 = ((alpha * (c1 - d1)) >> 8) + d1; final int r2 = ((alpha * (c2 - d2)) >> 8) + d2; final int r3 = ((alpha * (c3 - d3)) >> 8) + d3; pixels[i] = (r1 & 0xFF) + ((r2 & 0xFF) << 8) + ((r3 & 0xFF) << 16);
if (alpha != 0) { final int dst = pixels[i]; final int d1 = dst & 0xFF; final int d2 = (dst >> 8) & 0xFF; final int d3 = (dst >> 16) & 0xFF; final int r1 = (((alpha * (c1 - d1)) >> 8) + d1) & 0xFF; final int r2 = (((alpha * (c2 - d2)) >> 8) + d2) & 0xFF; final int r3 = (((alpha * (c3 - d3)) >> 8) + d3) & 0xFF; pixels[i...
protected void doDrawAlphaRaster(Raster raster, int srcX, int srcY, int dstX, int dstY, int width, int height, int color) { final byte[] buf = new byte[width]; final int[] pixels = new int[width]; final int c1 = color & 0xFF; final int c2 = ...
mem.setInts(pixels, 0, ofs, width);
if (modified) { mem.setInts(pixels, 0, ofs, width); }
protected void doDrawAlphaRaster(Raster raster, int srcX, int srcY, int dstX, int dstY, int width, int height, int color) { final byte[] buf = new byte[width]; final int[] pixels = new int[width]; final int c1 = color & 0xFF; final int c2 = ...
public Object getDataElements(int x, int y, int w, int h, Object outData)
public Object getDataElements(int x, int y, Object outData)
public Object getDataElements(int x, int y, int w, int h, Object outData) { return sampleModel.getDataElements(x-sampleModelTranslateX, y-sampleModelTranslateY, w, h, outData, dataBuffer); }
w, h, outData, dataBuffer); }
outData, dataBuffer); }
public Object getDataElements(int x, int y, int w, int h, Object outData) { return sampleModel.getDataElements(x-sampleModelTranslateX, y-sampleModelTranslateY, w, h, outData, dataBuffer); }
public abstract void setInt(int memPtr, int value, int count);
public abstract void setInt(int memPtr, int value);
public abstract void setInt(int memPtr, int value, int count);
public JCheckBoxMenuItem() { }
public JCheckBoxMenuItem() { this(null, null); }
public JCheckBoxMenuItem() { // TODO } // JCheckBoxMenuItem()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJCheckBoxMenuItem(this); } return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJCheckBoxMenuItem(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJCheckBoxMenuItem(this); } // if return accessibleContext; } // getAccessibleContext()
public Object[] getSelectedObjects() { return null; }
public Object[] getSelectedObjects() { return selectedObjects; }
public Object[] getSelectedObjects() { return null; // TODO } // getSelectedObjects()
public boolean getState() { return false; }
public boolean getState() { return state; }
public boolean getState() { return false; // TODO } // getState()
protected String paramString() { return null; }
protected String paramString() { return "JCheckBoxMenuItem"; }
protected String paramString() { return null; // TODO } // paramString()
public synchronized void setState(boolean state) { }
public synchronized void setState(boolean state) { this.state = state; }
public synchronized void setState(boolean state) { // TODO } // setState()
public Object[] getSelectedObjects() { return null; }
public Object[] getSelectedObjects() { if (isSelected()) { Object[] objs = new Object[1]; objs[0] = getText(); return objs; } else { return null; } }
public Object[] getSelectedObjects() { //Returns an array (length 1) containing the label or null if the button is not selected. return null; }
String classname = p[i].getProperty ("CertificateFactory." + type); if (classname != null) return getInstance (classname, type, p[i]);
try { return getInstance(type, p[i]); } catch (CertificateException ignored) { }
public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders (); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty ("CertificateFactory." + type); if (classname != null) return getInstance (classname, type, p[i]...
SwingUtilities.invokeLater(new Runnable() { public void run() { drainEvents(); } });
SwingUtilities.invokeLater(drainer);
private void queueEvent() { synchronized (queueLock) { queue++; if (queue == 1) SwingUtilities.invokeLater(new Runnable() { public void run() { drainEvents(); } }); } }
public XMLReader getXMLReader() { return reader; }
public XMLReader getXMLReader() { return xmlReader; }
public XMLReader getXMLReader() { return reader; } // getXMLReader()
public void setInputSource(InputSource source) { this.inputSource = source; }
public void setInputSource(InputSource inputSource) { this.inputSource = inputSource; }
public void setInputSource(InputSource source) { this.inputSource = source; } // setInputSource()
public void setSystemId(String systemID) { if (inputSource != null) { inputSource.setSystemId(systemID);
public void setSystemId(String systemId) { if (inputSource != null) { inputSource.setSystemId(systemId); }
public void setSystemId(String systemID) { if (inputSource != null) { inputSource.setSystemId(systemID); } } // setSystemId()
}
public void setSystemId(String systemID) { if (inputSource != null) { inputSource.setSystemId(systemID); } } // setSystemId()
public void setXMLReader(XMLReader reader) { this.reader = reader; }
public void setXMLReader(XMLReader reader) { xmlReader = reader; }
public void setXMLReader(XMLReader reader) { this.reader = reader; } // setXMLReader()
public static InputSource sourceToInputSource (Source in)
public static InputSource sourceToInputSource(Source source)
public static InputSource sourceToInputSource (Source in) { InputSource retval; boolean ok = false; if (in instanceof SAXSource) { return ((SAXSource) in).inputSource; } if (in.getSystemId () != null) { retval = new InputSource (in.getSystemId ()); ok = true; } else retval = n...
InputSource retval; boolean ok = false; if (in instanceof SAXSource) { return ((SAXSource) in).inputSource;
InputSource in = null; if (source instanceof SAXSource) { in = ((SAXSource) source).getInputSource();
public static InputSource sourceToInputSource (Source in) { InputSource retval; boolean ok = false; if (in instanceof SAXSource) { return ((SAXSource) in).inputSource; } if (in.getSystemId () != null) { retval = new InputSource (in.getSystemId ()); ok = true; } else retval = n...
if (in.getSystemId () != null) { retval = new InputSource (in.getSystemId ()); ok = true; } else retval = new InputSource (); if (in instanceof StreamSource) { StreamSource ss = (StreamSource) in; if (ss.getReader () != null) { retval.setCharacterStream (ss.getReader ()); ok = true; } else if (ss.getInputStream () !=...
else if (source instanceof StreamSource) { StreamSource streamSource = (StreamSource) source; InputStream inputStream = streamSource.getInputStream(); if (inputStream != null) { in = new InputSource(inputStream);
public static InputSource sourceToInputSource (Source in) { InputSource retval; boolean ok = false; if (in instanceof SAXSource) { return ((SAXSource) in).inputSource; } if (in.getSystemId () != null) { retval = new InputSource (in.getSystemId ()); ok = true; } else retval = n...
if (ss.getPublicId () != null) retval.setPublicId (ss.getPublicId ());
else { Reader reader = streamSource.getReader(); if (reader != null) { in = new InputSource(reader);
public static InputSource sourceToInputSource (Source in) { InputSource retval; boolean ok = false; if (in instanceof SAXSource) { return ((SAXSource) in).inputSource; } if (in.getSystemId () != null) { retval = new InputSource (in.getSystemId ()); ok = true; } else retval = n...
return ok ? retval : null;
public static InputSource sourceToInputSource (Source in) { InputSource retval; boolean ok = false; if (in instanceof SAXSource) { return ((SAXSource) in).inputSource; } if (in.getSystemId () != null) { retval = new InputSource (in.getSystemId ()); ok = true; } else retval = n...
String publicId = streamSource.getPublicId(); if (publicId != null && in != null) { in.setPublicId(publicId); } } String systemId = source.getSystemId(); if (systemId != null) { if (in == null) { in = new InputSource(systemId); } else { in.setSystemId(systemId); } } return in; }
public static InputSource sourceToInputSource (Source in) { InputSource retval; boolean ok = false; if (in instanceof SAXSource) { return ((SAXSource) in).inputSource; } if (in.getSystemId () != null) { retval = new InputSource (in.getSystemId ()); ok = true; } else retval = n...
public StructMember(String a_name, TypeCode a_type, IDLType a_type_def)
public StructMember()
public StructMember(String a_name, TypeCode a_type, IDLType a_type_def) { name = a_name; type = a_type; type_def = a_type_def; }
name = a_name; type = a_type; type_def = a_type_def;
public StructMember(String a_name, TypeCode a_type, IDLType a_type_def) { name = a_name; type = a_type; type_def = a_type_def; }
public AlreadyBoundException(String s)
public AlreadyBoundException()
public AlreadyBoundException(String s) { super(s); }
super(s);
public AlreadyBoundException(String s) { super(s); }
public final void deviceStarted(Device device) {
public final void deviceStarted(final Device device) {
public final void deviceStarted(Device device) { if (device.implementsAPI(FSBlockDeviceAPI.class)) { // add it to the queue of devices to be mounted only if the action // is not already pending devicesAdded++; devicesWaitingToBeMounted.add(device); //log...
devicesAdded++; devicesWaitingToBeMounted.add(device);
WorkUtils.add(new Work("Mounting " + device.getId()) { public void execute() { asyncDeviceStarted(device); } });
public final void deviceStarted(Device device) { if (device.implementsAPI(FSBlockDeviceAPI.class)) { // add it to the queue of devices to be mounted only if the action // is not already pending devicesAdded++; devicesWaitingToBeMounted.add(device); //log...
asynchronousMounterThread = new QueueProcessorThread( "Asynchronous-FS-Mounter", devicesWaitingToBeMounted, this); asynchronousMounterThread.start();
public void start() throws PluginException { try { devMan = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME); devMan.addListener(this); fileSystemService = (FileSystemService) InitialNaming .lookup(FileSystemService.NAME); asynchronousMou...
asynchronousMounterThread.stopProcessor(); asynchronousMounterThread = null;
public void stop() { devMan.removeListener(this); asynchronousMounterThread.stopProcessor(); asynchronousMounterThread = null; }
write8(REX_W_PREFIX);
public void writeCDQE() throws InvalidOpcodeException { if (!code64) { throw new InvalidOpcodeException(); } write8(0x98); }
public ColorUIResource(Color c)
public ColorUIResource(int r, int g, int b)
public ColorUIResource(Color c) { super(c.getRGB()); }
super(c.getRGB());
super(r, g, b);
public ColorUIResource(Color c) { super(c.getRGB()); }
public synchronized <S> S[] toArray(S[] a)
public synchronized Object[] toArray()
public synchronized <S> S[] toArray(S[] a) { if (a.length < elementCount) a = (S[]) Array.newInstance(a.getClass().getComponentType(), elementCount); else if (a.length > elementCount) a[elementCount] = null; System.arraycopy(elementData, 0, a, 0, elementCount); return a; }
if (a.length < elementCount) a = (S[]) Array.newInstance(a.getClass().getComponentType(), elementCount); else if (a.length > elementCount) a[elementCount] = null; System.arraycopy(elementData, 0, a, 0, elementCount); return a;
Object[] newArray = new Object[elementCount]; copyInto(newArray); return newArray;
public synchronized <S> S[] toArray(S[] a) { if (a.length < elementCount) a = (S[]) Array.newInstance(a.getClass().getComponentType(), elementCount); else if (a.length > elementCount) a[elementCount] = null; System.arraycopy(elementData, 0, a, 0, elementCount); return a; }
public ObjID(int num) { objNum = (long)num; space = new UID((short)0);
public ObjID() { synchronized (lock) { objNum = next++; } space = new UID();
public ObjID(int num) { objNum = (long)num; space = new UID((short)0);}
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf);
UnicastServerRef() {
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf);}
protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef)ref); exportObject(this);
protected UnicastRemoteObject() throws RemoteException { this(0);
protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef)ref); exportObject(this);}