rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (getNode() == null) { sb.append(" null node, ");
if (getContent() == null) { sb.append(" null content, ");
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); if (getNode() == null) { sb.append(" null node, "); } else { sb.append(getNode().getNodeName() + " (" + getNode().hashCode() + ")"); } sb.append(" (" + x + "," + y + "...
sb.append(getNode().getNodeName() + " (" + getNode().hashCode() + ")");
sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")");
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); if (getNode() == null) { sb.append(" null node, "); } else { sb.append(getNode().getNodeName() + " (" + getNode().hashCode() + ")"); } sb.append(" (" + x + "," + y + "...
PrintWriter blah = new PrintWriter(new FileWriter("foo.xml")); descriptor.writeXML(blah, 0); blah.flush();
public void testSave() throws Exception { URL url = getClass().getResource("/samples/saved.xml"); Document inputDocument = documentBuilder.parse(url.toString()); WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(url.toString()); StringWriter out = new StringWriter(); ...
if(box.absolute) {
if(box.isAbsolute()) {
public boolean isOutsideNormalFlow(Box box) { if(box.fixed) { return true; } if(box.absolute) { return true; } if(box.floated) { return true; } return false; }
if ( child_box.absolute ) {
if ( child_box.isAbsolute() ) {
public Box layoutChildren( Context c, Box box ) { //u.p("Layout.layoutChildren: " + box); Element elem = (Element)box.node; // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter( 0 ); // for each child NodeList nl = elem.getChildNodes()...
CalculatedStyle cs = new CalculatedStyle(parent, ps);
CalculatedStyle cs = null; if(ps != null) { cs = new CalculatedStyle(parent, ps); } else { cs = parent; }
public static InlineBox generateFirstLetterInlineBox( Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail ) { // u.p("gen first letter box"); // u.p("node = " + node); // u.p("start = " + start)...
remove(component); this.component = c; add(c);
int i = indexOfComponent(component); insertTab(title, icon, c, tip, i); component = c; removeTabAt(i);
public void setComponent(Component c) { remove(component); this.component = c; add(c); }
layout();
revalidate();
public void insertTab(String title, Icon icon, Component component, String tip, int index) { if (title == null) title = ""; Page p = new Page(title, icon, component, tip); tabs.insertElementAt(p, index); // Hide the component so we don't see it. Do it before we parent it //...
int index = indexOfComponent(component);
public void remove(Component component) { // This simply removes the component. int index = indexOfComponent(component); super.remove(component); component.show(); setComponentAt(index, null); }
component.show(); setComponentAt(index, null);
public void remove(Component component) { // This simply removes the component. int index = indexOfComponent(component); super.remove(component); component.show(); setComponentAt(index, null); }
Component c = getComponentAt(index); super.remove(index); c.show();
public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); }
getComponentAt(index).show();
public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); }
MessageHolder(String routingKey, Message message, Map queueNameToNodeIdMap) { this.routingKey = routingKey; this.message = message; this.queueNameToNodeIdMap = queueNameToNodeIdMap;
public MessageHolder() {
MessageHolder(String routingKey, Message message, Map queueNameToNodeIdMap) { this.routingKey = routingKey; this.message = message; this.queueNameToNodeIdMap = queueNameToNodeIdMap; }
SendTransactionRequest(int nodeId, long txId)
SendTransactionRequest()
SendTransactionRequest(int nodeId, long txId) { super(nodeId, txId, false); }
super(nodeId, txId, false);
SendTransactionRequest(int nodeId, long txId) { super(nodeId, txId, false); }
if (child.getSubstring().equals("")) return;
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start...
page.paintBorder(c, 0);
page.paintBorder(c, 0, Layer.PAGED_MODE_PRINT);
private void paintPage(RenderingContext c, PageBox page) { Shape working = _outputDevice.getClip(); Rectangle content = page.getPrintingClippingBounds(c); _outputDevice.clip(content); int top = -page.getPaintingTop() + page.getStyle().getMarginBorderPa...
void writeArray(Array x) throws SQLException;
void writeArray(Array value) throws SQLException;
void writeArray(Array x) throws SQLException;
void writeAsciiStream(InputStream x) throws SQLException;
void writeAsciiStream(InputStream stream) throws SQLException;
void writeAsciiStream(InputStream x) throws SQLException;
void writeBigDecimal(BigDecimal x) throws SQLException;
void writeBigDecimal(BigDecimal value) throws SQLException;
void writeBigDecimal(BigDecimal x) throws SQLException;
void writeBinaryStream(InputStream x) throws SQLException;
void writeBinaryStream(InputStream stream) throws SQLException;
void writeBinaryStream(InputStream x) throws SQLException;
void writeBlob(Blob x) throws SQLException;
void writeBlob(Blob value) throws SQLException;
void writeBlob(Blob x) throws SQLException;
void writeBoolean(boolean x) throws SQLException;
void writeBoolean(boolean value) throws SQLException;
void writeBoolean(boolean x) throws SQLException;
void writeByte(byte x) throws SQLException;
void writeByte(byte value) throws SQLException;
void writeByte(byte x) throws SQLException;
void writeBytes(byte[] x) throws SQLException;
void writeBytes(byte[] value) throws SQLException;
void writeBytes(byte[] x) throws SQLException;
void writeCharacterStream(Reader x) throws SQLException;
void writeCharacterStream(Reader stream) throws SQLException;
void writeCharacterStream(Reader x) throws SQLException;
void writeClob(Clob x) throws SQLException;
void writeClob(Clob value) throws SQLException;
void writeClob(Clob x) throws SQLException;
void writeDate(Date x) throws SQLException;
void writeDate(Date value) throws SQLException;
void writeDate(Date x) throws SQLException;
void writeDouble(double x) throws SQLException;
void writeDouble(double value) throws SQLException;
void writeDouble(double x) throws SQLException;
void writeFloat(float x) throws SQLException;
void writeFloat(float value) throws SQLException;
void writeFloat(float x) throws SQLException;
void writeInt(int x) throws SQLException;
void writeInt(int value) throws SQLException;
void writeInt(int x) throws SQLException;
void writeLong(long x) throws SQLException;
void writeLong(long value) throws SQLException;
void writeLong(long x) throws SQLException;
void writeObject(SQLData x) throws SQLException;
void writeObject(SQLData value) throws SQLException;
void writeObject(SQLData x) throws SQLException;
void writeRef(Ref x) throws SQLException;
void writeRef(Ref value) throws SQLException;
void writeRef(Ref x) throws SQLException;
void writeShort(short x) throws SQLException;
void writeShort(short value) throws SQLException;
void writeShort(short x) throws SQLException;
void writeString(String x) throws SQLException;
void writeString(String value) throws SQLException;
void writeString(String x) throws SQLException;
void writeStruct(Struct x) throws SQLException;
void writeStruct(Struct value) throws SQLException;
void writeStruct(Struct x) throws SQLException;
void writeTime(Time x) throws SQLException;
void writeTime(Time value) throws SQLException;
void writeTime(Time x) throws SQLException;
void writeTimestamp(Timestamp x) throws SQLException;
void writeTimestamp(Timestamp value) throws SQLException;
void writeTimestamp(Timestamp x) throws SQLException;
void writeURL(URL x) throws SQLException;
void writeURL(URL value) throws SQLException;
void writeURL(URL x) throws SQLException;
ServerManagement.start(i, "all");
ServerManagement.start(i, "all", i == 0);
protected void setUp() throws Exception { super.setUp(); if (nodeCount < 1) { throw new Exception("Node count not defined! Initalize nodeCount in the test's setUp()"); } ic = new Context[nodeCount]; queue = new Queue[nodeCount]; topic = new Topic[nodeCount]; for(int ...
this.sessionEndpoint.getConnectionEndpoint().removeConsumerDelegate(id);
sessionEndpoint.getConnectionEndpoint(). getServerPeer().removeConsumerEndpoint(new Integer(id));
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ...
this.sessionEndpoint.removeConsumerDelegate(id);
sessionEndpoint.removeConsumerEndpoint(id);
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ...
Queue sub = binding.getQueue(); if (sub.numberOfReceivers() != 0) { throw new IllegalStateException("Cannot unsubscribe durable subscription " + subscriptionName + " since it has active subscribers"); }
public void unsubscribe(String subscriptionName) throws JMSException { try { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); ...
throws NotImplementedException
protected void installKeyboardActions() { // FIXME: implement. }
if (swingComponent != null) swingComponent.getJComponent().setBounds(x, y, width, height);
reshape(x, y, width, height);
public void setBounds(int x, int y, int width, int height) { if (swingComponent != null) swingComponent.getJComponent().setBounds(x, y, width, height); }
test(0, 5); test(-1481821192, 1);
testInt(0, 5); testInt(-1481821192, 1); testLong(0L, 5L); testLong(-1481821192L, 1L);
public void run() { test(0, 5); test(-1481821192, 1); }
String subscriptionName, String selector)
String subscriptionName, String selector, boolean noLocal)
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; Transa...
super.createDurableSubscription(topicName, clientID, subscriptionName, selector);
super.createDurableSubscription(topicName, clientID, subscriptionName, selector, noLocal);
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; Transa...
String s = JDBCUtil.statementToString(insertSubscription, clientID, subscriptionName, topicName, selector);
String s = JDBCUtil.statementToString(insertSubscription, clientID, subscriptionName, topicName, selector, Boolean.valueOf(noLocal));
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; Transa...
sub = super.createDurableSubscription(topicName, clientID, name, selector);
sub = super.createDurableSubscription(topicName, clientID, name, selector, noLocal);
public DurableSubscription getDurableSubscription(String clientID, String subscriptionName) throws JMSException { //Look in memory first DurableSubscription sub = super.getDurableSubscription(clientID, subscriptionName); if (sub != null) { return sub; } try { ...
sub = super.createDurableSubscription(topicName, clientID, subName, selector);
sub = super.createDurableSubscription(topicName, clientID, subName, selector, noLocal);
public Set loadDurableSubscriptionsForTopic(String topicName) throws JMSException { try { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection...
String selector)
String selector, boolean noLocal)
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSExcepti...
internalCreateDurableSubscription(clientID, subscriptionName, topicName, selector);
internalCreateDurableSubscription(clientID, subscriptionName, topicName, selector, noLocal);
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSExcepti...
public final StringBuffer format (Object objectArray, StringBuffer appendBuf, FieldPosition fpos)
public static String format (String pattern, Object arguments[])
public final StringBuffer format (Object objectArray, StringBuffer appendBuf, FieldPosition fpos) { return format ((Object[])objectArray, appendBuf, fpos); }
return format ((Object[])objectArray, appendBuf, fpos);
MessageFormat mf = new MessageFormat (pattern); StringBuffer sb = new StringBuffer (); FieldPosition fp = new FieldPosition (NumberFormat.INTEGER_FIELD); return mf.formatInternal(arguments, sb, fp, null).toString();
public final StringBuffer format (Object objectArray, StringBuffer appendBuf, FieldPosition fpos) { return format ((Object[])objectArray, appendBuf, fpos); }
ServerManagement.deInit();
public void tearDown() throws Exception { conn.close(); ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); }
repaintListener = new DocumentListener() { public void changedUpdate(DocumentEvent ev) { repaint(); } public void insertUpdate(DocumentEvent ev) { repaint(); } public void removeUpdate(DocumentEvent ev) { repaint(); } };
public JTextComponent() { repaintListener = new DocumentListener() { public void changedUpdate(DocumentEvent ev) { repaint(); } public void insertUpdate(DocumentEvent ev) { repaint(); } public void removeUpdate(DocumentEvent ev) { repaint(); } }; Keymap defkeymap = getKeymap(DEFAULT_KEYMAP); ...
if (oldDoc != null) oldDoc.removeDocumentListener(repaintListener); if (newDoc != null) newDoc.addDocumentListener(repaintListener);
public void setDocument(Document newDoc) { Document oldDoc = doc; doc = newDoc; // setup document listener if (oldDoc != null) oldDoc.removeDocumentListener(repaintListener); if (newDoc != null) newDoc.addDocumentListener(repaintListener); firePropertyChange("document", oldDoc, newDoc); r...
} if (timerFunctions.size() > 0) { XMLUtil.printIndent(out, indent++); out.println("<trigger-functions>"); Iterator iterator = timerFunctions.values().iterator(); while (iterator.hasNext()) { FunctionDescriptor trigger = (FunctionDescriptor) iterator.next(); trigger.writeXML(out, indent); } XMLUtil.printIndent(out,...
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde...
public HibernateStep(HibernateStep step) { this.actionId = step.getActionId(); this.caller = step.getCaller(); this.finishDate = step.getFinishDate(); this.dueDate = step.getDueDate(); this.startDate = step.getStartDate(); this.id = step.getId(); this.owner = step.getOwner(); this.status = step.getStatus(); this.stepId...
public HibernateStep() {
public HibernateStep(HibernateStep step) { this.actionId = step.getActionId(); this.caller = step.getCaller(); this.finishDate = step.getFinishDate(); this.dueDate = step.getDueDate(); this.startDate = step.getStartDate(); this.id = step.getId(); this.owner = step.ge...
ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID)
ConnectionDelegate createConnectionDelegate(String username, String password)
ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException;
RepaintManager rm = RepaintManager.globalManager;
ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager rm = (RepaintManager) currentRepaintManagers.get(threadGroup);
public void run() { RepaintManager rm = RepaintManager.globalManager; setLive(false); rm.validateInvalidComponents(); rm.paintDirtyRegions(); }
if (globalManager == null) globalManager = new RepaintManager(); return globalManager;
if (currentRepaintManagers == null) currentRepaintManagers = new HashMap(); ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager currentManager = (RepaintManager) currentRepaintManagers.get(threadGroup); if (currentManager == null) { currentManager = new RepaintManager(); currentRepaintMana...
public static RepaintManager currentManager(Component component) { if (globalManager == null) globalManager = new RepaintManager(); return globalManager; }
globalManager = manager;
if (currentRepaintManagers == null) currentRepaintManagers = new HashMap(); ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); currentRepaintManagers.put(threadGroup, manager);
public static void setCurrentManager(RepaintManager manager) { globalManager = manager; }
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon(getPropertyPrefix() + "icon");
return UIManager.getIcon(getPropertyPrefix() + "icon");
public Icon getDefaultIcon() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon(getPropertyPrefix() + "icon"); }
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); g.setColor(defaults.getColor("Label.disabledForeground"));
g.setColor(UIManager.getColor("Label.disabledForeground"));
protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY) { Color savedColor = g.getColor(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); g.setColor(defaults.getColor("Label.disabledForeground")); int mnemIndex = l.getDisplayedMnem...
public static ComponentUI createUI(final JComponent c) { return new BasicLabelUI(); }
public static ComponentUI createUI(JComponent c) { if (labelUI == null) labelUI = new BasicLabelUI(); return labelUI; }
public static ComponentUI createUI(final JComponent c) { return new BasicLabelUI(); }
res = res.replaceAll("[^\\\\]\\$"+type, "\\$");
res = res.replaceAll("([^\\\\])\\$"+type, "$1\\$");
private String applyTypeRule(String rule, String type, String ruleType, Matcher m) { String res = rule == null ? "$"+ruleType+"0" : rule; for (int i = 0; i < TYPES.length; i++) { if (TYPES[i].equals(type)) { res = res.replaceAll("[^\\\\]\\$"+type, "\\$"); ...
res = res.replaceAll("[^\\\\]\\$"+TYPES[i], "\\\\\\$"+TYPES[i]);
res = res.replaceAll("([^\\\\])\\$"+TYPES[i], "$1\\\\\\$"+TYPES[i]);
private String applyTypeRule(String rule, String type, String ruleType, Matcher m) { String res = rule == null ? "$"+ruleType+"0" : rule; for (int i = 0; i < TYPES.length; i++) { if (TYPES[i].equals(type)) { res = res.replaceAll("[^\\\\]\\$"+type, "\\$"); ...
sb.append(match.substituteInto(replacement));
sb.append(RE.getReplacement(replacement, match, RE.REG_REPLACE_USE_BACKSLASHESCAPE));
public Matcher appendReplacement (StringBuffer sb, String replacement) throws IllegalStateException { assertMatchOp(); sb.append(input.subSequence(appendPosition, match.getStartIndex()).toString()); sb.append(match.substituteInto(replacement)); appendPosition = match.getEndIndex(); return this; ...
ServerManagement.stop();
public void tearDown() throws Exception { super.tearDown(); initialContext.close(); ServerManagement.stop(); }
ServerManagement.deInit();
public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); if (worker1 != null) { worker1.interrupt(); } ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2");...
assertEquals(2, listeners.size());
assertEquals(3, listeners.size());
public void testRemotingInternals() throws Exception { if (ServerManagement.isRemote()) return; Connector serverConnector = ServerManagement.getConnector(); ServerInvoker serverInvoker = serverConnector.getServerInvoker(); JMSServerInvocationHandler invocationHandler = (JMSServ...
assertEquals(3, listeners.size());
assertEquals(4, listeners.size());
public void testRemotingInternals() throws Exception { if (ServerManagement.isRemote()) return; Connector serverConnector = ServerManagement.getConnector(); ServerInvoker serverInvoker = serverConnector.getServerInvoker(); JMSServerInvocationHandler invocationHandler = (JMSServ...
protected void ensureResolved(boolean haltOnFailure) {
protected void ensureResolved(boolean haltOnFailure, String org, String module) {
protected void ensureResolved(boolean haltOnFailure) { ensureMessageInitialised(); Object reference = getProject().getReference("ivy.resolved.descriptor"); if (reference == null) { Message.verbose("no resolved descriptor found: launching default resolve"); IvyResolve resol...
if (org != null && module != null) { return; }
protected void ensureResolved(boolean haltOnFailure) { ensureMessageInitialised(); Object reference = getProject().getReference("ivy.resolved.descriptor"); if (reference == null) { Message.verbose("no resolved descriptor found: launching default resolve"); IvyResolve resol...
style._border = (BorderPropertySet) _cachedRects.get(key);
style._border = (BorderPropertySet) getCachedRect(key);
private static BorderPropertySet getBorderProperty(CalculatedStyle style, CssContext ctx) { if (style._border == null) { String key = BorderPropertySet.deriveKey(style); style._border = (BorderPropertySet) _cachedRects.get(key); ...
_cachedRects.put(key, style._border);
putCachedRect(key, style._border);
private static BorderPropertySet getBorderProperty(CalculatedStyle style, CssContext ctx) { if (style._border == null) { String key = BorderPropertySet.deriveKey(style); style._border = (BorderPropertySet) _cachedRects.get(key); ...
style._margin = (RectPropertySet) _cachedRects.get(key);
style._margin = (RectPropertySet) getCachedRect(key);
private static RectPropertySet getMarginProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
_cachedRects.put(key, style._margin);
putCachedRect(key, style._margin);
private static RectPropertySet getMarginProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
style._padding = (RectPropertySet) _cachedRects.get(key);
style._padding = (RectPropertySet) getCachedRect(key);
private static RectPropertySet getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
_cachedRects.put(key, style._padding);
putCachedRect(key, style._padding);
private static RectPropertySet getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName[] sides, float parentWidth, ...
public void addNamingListener(Name target, int scope, NamingListener l)
void addNamingListener (Name target, int scope, NamingListener l)
public void addNamingListener(Name target, int scope, NamingListener l) throws NamingException;
public void removeNamingListener(NamingListener l) throws NamingException;
void removeNamingListener (NamingListener l) throws NamingException;
public void removeNamingListener(NamingListener l) throws NamingException;
public boolean targetMustExist() throws NamingException;
boolean targetMustExist() throws NamingException;
public boolean targetMustExist() throws NamingException;
BootLog.debug("Started " + device.getId());
public synchronized void register(Device device) throws DeviceAlreadyRegisteredException, DriverException { final String devID = device.getId(); if (devices.containsKey(devID)) { throw new DeviceAlreadyRegisteredException( devID); } // Set a link to me device.se...
return 0;
int status = ImageObserver.ALLBITS | ImageObserver.WIDTH | ImageObserver.HEIGHT; if (image instanceof JNodeImage) { status = ((JNodeImage) image).checkImage(); } if (observer != null) observer.imageUpdate(image, status, -1, -1, image .getWidth(observer), image.getHeight(observer)); return status;
public int checkImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return 0; }
return null;
return new ErrorImage();
public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( data, offset, len))); } catch (LinkageError err) { ...
return (Image) AccessController.doPrivileged(new PrivilegedAction() {
return testErrorImage((Image) AccessController.doPrivileged(new PrivilegedAction() {
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
} catch (MalformedURLException e) { e.printStackTrace();
} catch (Exception ex) { log.debug("Error loading image", ex);
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
log.debug("Image not found");
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
});
}));
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image =...
} catch (MalformedURLException e) { e.printStackTrace();
} catch (Exception ex) { log.debug("Error loading image", ex);
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsol...
log.debug("Image not found");
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsol...
} catch (IOException ex) { log.debug("IOException during getImage", ex);
} catch (Exception ex) { log.debug("Exception during getImage", ex);
public Object run() { try { final URLConnection conn = url.openConnection(); final String type = conn.getContentType(); if ("image/gif".equals(type) || url.getFile().toLowerCase().endsWith(".gif")) { try { return createImage(new GIFDecoder(conn .getInputStream(), true)); ...
ImageObserver observer) { return false;
ImageObserver observer) { if (image instanceof JNodeImage) { final JNodeImage i = (JNodeImage) image; return i.prepare(observer); } else { return true; }
public boolean prepareImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return false; }
((Peer)channel).join(); ((Peer)channel2).join();
((DistributedChannel)channel).join(); ((DistributedChannel)channel2).join();
public void testAddReceiver_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...
((Peer)channel).join(); ((Peer)channel2).join();
((DistributedChannel)channel).join(); ((DistributedChannel)channel2).join();
public void testAddReceiver_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...
((Peer)channel).join(); ((Peer)channel2).join();
((DistributedChannel)channel).join(); ((DistributedChannel)channel2).join();
public void testAddReceiver_3() throws Throwable { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); as...