rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
throw new IllegalAccessError("Already connected");
throw new IllegalStateException ("Already connected");
public void setIfModifiedSince(long ifmodifiedsince) { if (connected) throw new IllegalAccessError("Already connected"); ifModifiedSince = ifmodifiedsince; }
if (connected) throw new IllegalStateException ("Already connected");
public void setRequestProperty(String key, String value) { // Do nothing unless overridden by subclasses that support setting // header fields in the request. }
throw new IllegalAccessError("Already connected");
throw new IllegalStateException ("Already connected");
public void setUseCaches(boolean usecaches) { if (connected) throw new IllegalAccessError("Already connected"); useCaches = usecaches; }
public Result(byte[] response, byte[] error) { this.response = response; this.error = error;
public Result(byte[] _response, byte[] _error) { this.response = _response; this.error = _error;
public Result(byte[] response, byte[] error) { this.response = response; this.error = error; }
result = ERXFileUtilities.bytesFromInputStream(is); finished = true;
int read = -1; byte[] buf = new byte[1024 * 50]; while ((read = is.read(buf)) != -1) { bout.write(buf, 0, read); }
public StreamReader(final InputStream is) { Runnable r = new Runnable() { public void run() { try { result = ERXFileUtilities.bytesFromInputStream(is); finished = true; } catch (IOException e) { ...
e.printStackTrace();
iox = e;
public StreamReader(final InputStream is) { Runnable r = new Runnable() { public void run() { try { result = ERXFileUtilities.bytesFromInputStream(is); finished = true; } catch (IOException e) { ...
result = bout.toByteArray(); finished = true;
public StreamReader(final InputStream is) { Runnable r = new Runnable() { public void run() { try { result = ERXFileUtilities.bytesFromInputStream(is); finished = true; } catch (IOException e) { ...
result = ERXFileUtilities.bytesFromInputStream(is); finished = true;
int read = -1; byte[] buf = new byte[1024 * 50]; while ((read = is.read(buf)) != -1) { bout.write(buf, 0, read); }
public void run() { try { result = ERXFileUtilities.bytesFromInputStream(is); finished = true; } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(...
e.printStackTrace();
iox = e;
public void run() { try { result = ERXFileUtilities.bytesFromInputStream(is); finished = true; } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(...
result = bout.toByteArray(); finished = true;
public void run() { try { result = ERXFileUtilities.bytesFromInputStream(is); finished = true; } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(...
public TimeoutTimerTask(Process p) { this.p = p;
public TimeoutTimerTask(Process _p) { this.p = _p;
public TimeoutTimerTask(Process p) { this.p = p; }
int exitValue = 0; StringBuffer response = new StringBuffer(); String input = ""; String error = "";
public final static Result execute(String[] command, String[] envp, File dir, long timeout) throws IOException, TimeoutException { File outputFile = null; Runtime rt = Runtime.getRuntime(); Process p = null; int exitValue = 0; StringBuffer response = new StringBuffer();...
response.append(isr.getResult());
if (isr.getException() != null) { log.error("input stream reader got exception,\n "+ "command = "+ERXStringUtilities.toString(command, " ")+ "result = "+isr.getResultAsString(), isr.getException()); } if (esr.getException() != null) { log.error("error stream reader got exception,\n "+ "command = "+ERXStringUt...
public final static Result execute(String[] command, String[] envp, File dir, long timeout) throws IOException, TimeoutException { File outputFile = null; Runtime rt = Runtime.getRuntime(); Process p = null; int exitValue = 0; StringBuffer response = new StringBuffer();...
names.add(i.next()); } Collections.sort(names); Iterator i = names.iterator(); while(i.hasNext()) {
public void setProperties(Map props) { for (Iterator i = props.keySet().iterator(); i.hasNext(); ) { try { String propName = (String) i.next(); String propValue = (String) props.get(propName); Property prop = getProperty(propName); if (prop == null) { if(log.isErrorEnabled...
Object np = getMyProperties().remove(name); if (nullProperty.equals(np))
Object np = getMyProperties().get(name); if (nullProperty.equals(np)) { getMyProperties().remove(name);
public void setPropertyVisible(Property prop, boolean newVisible) { CompositeName name = prop.getName(); if (newVisible) { Object np = getMyProperties().remove(name); if (nullProperty.equals(np)) firePropertyAdded(prop); } else { Object np = getMyProperties().put(name, nullProperty); ...
}
public void setPropertyVisible(Property prop, boolean newVisible) { CompositeName name = prop.getName(); if (newVisible) { Object np = getMyProperties().remove(name); if (nullProperty.equals(np)) firePropertyAdded(prop); } else { Object np = getMyProperties().put(name, nullProperty); ...
super(e,null,null); _entity=e; _toManyKey=toManyKey; _elements=elements;
super(e,toManyKey,elements);
public ERXEOToManyQualifier(EOEntity e, String toManyKey, NSArray elements) { super(e,null,null); _entity=e; _toManyKey=toManyKey; _elements=elements; }
NSMutableArray result=new NSMutableArray(); if (eos.count()>0) { for (Enumeration e=eos.objectEnumerator(); e.hasMoreElements();) { EOEnterpriseObject target=(EOEnterpriseObject)e.nextElement(); NSDictionary pKey=EOUtilities.primaryKeyForObject(target.editingContext(),target); result.addObject(pKey.allValues().objectAt...
return ERXEOAccessUtilities.primaryKeysForObjects(eos);
public static NSArray primaryKeysForObjectsFromSameEntity(NSArray eos) { NSMutableArray result=new NSMutableArray(); if (eos.count()>0) { for (Enumeration e=eos.objectEnumerator(); e.hasMoreElements();) { EOEnterpriseObject target=(EOEnterpriseObject)e.nextElement(); ...
if(tpd[3] instanceof RelationshipTimePhasedData) { RelationshipTimePhasedData rel = (RelationshipTimePhasedData)tpd[3]; assertEquals("Test Relationship Role", "MetricsControlProvider", rel.getRole()); assertEquals("Test Item", "Initializer", rel.getItem()); assertEquals("Test Cluster", "Initializer", rel.getCluster());...
public void testComponentDataTimePhased() { String[] supplies = {"Supplies.Agent"}; agent.getProperty(ABCAgent.PROP_SUPPLIES).setValue(supplies); agent.getProperty(ABCAgent.PROP_INITIALIZER).setValue("Initializer"); ComponentData data = (ComponentData)agent.addComponentData(new GenericComponentData()); ...
try{ parseParams(request);
try { ServletUtil.parseParams(this, request);
public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException { this.out = response.getOutputStream(); try{ parseParams(request); List ret = getObjects(); if (ret!=null) { ObjectOutputStream p = new ObjectOutputStream(out); p.writeObject(ret); ...
private static List getObjects() {
private List getObjects() {
private static List getObjects() { // create predicate UnaryPredicate pred = getPred(); // query Collection col = support.queryBlackboard(pred); int colSize = col.size(); // check limit int maxRetSize; if (limit < colSize) { maxRetSize = limit + 1; ...
filter.SetOutputMinimum( 0 ); filter.SetOutputMaximum(255);
filter.SetOutputMinimum( (short)0 ); filter.SetOutputMaximum( (short) 255);
public static void main( String argv[] ) { System.out.println("DicomSliceRead Example"); itkImageFileReaderUS2_Pointer reader = itkImageFileReaderUS2.itkImageFileReaderUS2_New(); itkImageFileWriterUC2_Pointer writer = itkImageFileWriterUC2.itkImageFileWriterUC2_New(); itkRescaleIntensityImageFilterUS2UC2...
private void callReadMethod (Object obj, ObjectStreamClass osc) throws IOException
private void callReadMethod (Method readObject, Class klass, Object obj) throws IOException
private void callReadMethod (Object obj, ObjectStreamClass osc) throws IOException { Class klass = osc.forClass(); try { Class classArgs[] = {ObjectInputStream.class}; Method m = getMethod (klass, "readObject", classArgs); Object args[] = {this}; m.invoke(obj, args); } catch (NoSuchMethodException...
Class klass = osc.forClass();
private void callReadMethod (Object obj, ObjectStreamClass osc) throws IOException { Class klass = osc.forClass(); try { Class classArgs[] = {ObjectInputStream.class}; Method m = getMethod (klass, "readObject", classArgs); Object args[] = {this}; m.invoke(obj, args); } catch (NoSuchMethodException...
Class classArgs[] = {ObjectInputStream.class}; Method m = getMethod (klass, "readObject", classArgs); Object args[] = {this}; m.invoke(obj, args); } catch (NoSuchMethodException nsme) {
readObject.invoke(obj, new Object[] { this });
private void callReadMethod (Object obj, ObjectStreamClass osc) throws IOException { Class klass = osc.forClass(); try { Class classArgs[] = {ObjectInputStream.class}; Method m = getMethod (klass, "readObject", classArgs); Object args[] = {this}; m.invoke(obj, args); } catch (NoSuchMethodException...
if (Configuration.DEBUG && dump) System.out.print(msg);
System.out.print(msg);
private void dumpElement (String msg) { if (Configuration.DEBUG && dump) System.out.print(msg); }
if (Configuration.DEBUG && dump) System.out.println(msg);
System.out.println(msg);
private void dumpElementln (String msg) { if (Configuration.DEBUG && dump) System.out.println(msg); }
return null;
throw new ClassNotFoundException ("Instance of " + real_class + " could not be created");
private Object newObject (Class real_class, Class constructor_class) { try { Object obj = allocateObject (real_class); callConstructor (constructor_class, obj); return obj; } catch (InstantiationException e) { return null; } }
private Object processResolution(Object obj, int handle)
private Object processResolution(ObjectStreamClass osc, Object obj, int handle)
private Object processResolution(Object obj, int handle) throws IOException { if (obj instanceof Serializable) { Method m = null; try { Class classArgs[] = {}; m = getMethod(obj.getClass(), "readResolve", classArgs); obj = m.invoke(obj, new Object[] {}); } catch (NoSuchMethodExcep...
if (obj instanceof Serializable)
if (osc != null && obj instanceof Serializable)
private Object processResolution(Object obj, int handle) throws IOException { if (obj instanceof Serializable) { Method m = null; try { Class classArgs[] = {}; m = getMethod(obj.getClass(), "readResolve", classArgs); obj = m.invoke(obj, new Object[] {}); } catch (NoSuchMethodExcep...
Method m = null;
private Object processResolution(Object obj, int handle) throws IOException { if (obj instanceof Serializable) { Method m = null; try { Class classArgs[] = {}; m = getMethod(obj.getClass(), "readResolve", classArgs); obj = m.invoke(obj, new Object[] {}); } catch (NoSuchMethodExcep...
Class classArgs[] = {}; m = getMethod(obj.getClass(), "readResolve", classArgs); obj = m.invoke(obj, new Object[] {}); } catch (NoSuchMethodException ignore) {
Method m = osc.readResolveMethod; if(m != null) { obj = m.invoke(obj, new Object[] {}); }
private Object processResolution(Object obj, int handle) throws IOException { if (obj instanceof Serializable) { Method m = null; try { Class classArgs[] = {}; m = getMethod(obj.getClass(), "readResolve", classArgs); obj = m.invoke(obj, new Object[] {}); } catch (NoSuchMethodExcep...
dumpElement("CLASSDESC NAME=");
if(dump) dumpElement("CLASSDESC NAME=");
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
dumpElement(name + "; UID=");
if(dump) dumpElement(name + "; UID=");
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
dumpElement(Long.toHexString(uid) + "; FLAGS=");
if(dump) dumpElement(Long.toHexString(uid) + "; FLAGS=");
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
dumpElement(Integer.toHexString(flags) + "; FIELD COUNT=");
if(dump) dumpElement(Integer.toHexString(flags) + "; FIELD COUNT=");
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
dumpElementln(Short.toString(field_count));
if(dump) dumpElementln(Short.toString(field_count));
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
dumpElement(" TYPE CODE=");
if(dump) dumpElement(" TYPE CODE=");
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
dumpElement(type_code + "; FIELD NAME=");
if(dump) dumpElement(type_code + "; FIELD NAME=");
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
dumpElementln(field_name);
if(dump) dumpElementln(field_name);
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
new ObjectStreamField(field_name, class_name, currentLoader());
new ObjectStreamField(field_name, class_name, currentLoader);
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
for (int i = 0; i < field_count; i++) { Field f; try { f = clazz.getDeclaredField(fields[i].getName()); if (f != null && !f.getType().equals(fields[i].getType())) throw new InvalidClassException ("invalid field type for " + fields[i].getName() + " in class " + name + " (requested was \"" + fields[i].getType() + " and ...
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
Class first_nonserial = clazz.getSuperclass(); while (Serializable.class.isAssignableFrom(first_nonserial) || Modifier.isAbstract(first_nonserial.getModifiers())) first_nonserial = first_nonserial.getSuperclass(); osc.firstNonSerializableParent = first_nonserial; osc.realClassIsSerializable = Serializable.class.isAssi...
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); ...
dumpElement("MARKER: 0x" + Integer.toHexString(marker) + " ");
if(dump) dumpElement("MARKER: 0x" + Integer.toHexString(marker) + " ");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("BLOCKDATALONG");
if(dump) dumpElementln("BLOCKDATALONG");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("BLOCKDATA");
if(dump) dumpElementln("BLOCKDATA");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("NULL");
if(dump) dumpElementln("NULL");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElement("REFERENCE ");
if(dump) dumpElement("REFERENCE ");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln(Integer.toHexString(oid.intValue()));
if(dump) dumpElementln(Integer.toHexString(oid.intValue()));
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("CLASS");
if(dump) dumpElementln("CLASS");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("PROXYCLASS");
if(dump) dumpElementln("PROXYCLASS");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElement("STRING=");
if(dump) dumpElement("STRING=");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln(s); ret_val = processResolution(s, assignNewHandle(s));
if(dump) dumpElementln(s); ret_val = processResolution(null, s, assignNewHandle(s));
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("ARRAY");
if(dump) dumpElementln("ARRAY");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElement("ARRAY LENGTH=");
if(dump) dumpElement("ARRAY LENGTH=");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln (length + "; COMPONENT TYPE=" + componentType);
if(dump) dumpElementln (length + "; COMPONENT TYPE=" + componentType);
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
for (int i = 0, len = Array.getLength(array); i < len; i++) dumpElementln(" ELEMENT[" + i + "]=" + Array.get(array, i)); ret_val = processResolution(array, handle);
if(dump) for (int i = 0, len = Array.getLength(array); i < len; i++) dumpElementln(" ELEMENT[" + i + "]=" + Array.get(array, i)); ret_val = processResolution(null, array, handle);
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("OBJECT");
if(dump) dumpElementln("OBJECT");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
if (!Serializable.class.isAssignableFrom(clazz))
if (!osc.realClassIsSerializable)
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
if (Externalizable.class.isAssignableFrom(clazz))
if (osc.realClassIsExternalizable)
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
ret_val = processResolution(obj, handle);
ret_val = processResolution(osc, obj, handle);
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
} Class first_nonserial = clazz.getSuperclass(); while (Serializable.class.isAssignableFrom(first_nonserial) || Modifier.isAbstract(first_nonserial.getModifiers())) first_nonserial = first_nonserial.getSuperclass(); Object obj = null; obj = newObject(clazz, first_nonserial); if (obj == null) throw new ClassNotFoun...
} Object obj = newObject(clazz, osc.firstNonSerializableParent);
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("Reading fields of " + this.currentObjectStreamClass.getName ());
if(dump) dumpElementln("Reading fields of " + this.currentObjectStreamClass.getName ());
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
if (this.currentObjectStreamClass.hasReadMethod())
Method readObjectMethod = this.currentObjectStreamClass.readObjectMethod; if (readObjectMethod != null)
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
callReadMethod(obj, this.currentObjectStreamClass);
callReadMethod(readObjectMethod, this.currentObjectStreamClass.forClass(), obj);
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElement("ENDBLOCKDATA? ");
if(dump) dumpElement("ENDBLOCKDATA? ");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("yes");
if(dump) dumpElementln("yes");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("no, got EOFException");
if(dump) dumpElementln("no, got EOFException");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("no, got IOException");
if(dump) dumpElementln("no, got IOException");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln("RESET");
if(dump) dumpElementln("RESET");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElement("EXCEPTION=");
if(dump) dumpElement("EXCEPTION=");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElementln(e.toString());
if(dump) dumpElementln(e.toString());
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ...
dumpElement("STREAM MAGIC ");
if(dump) dumpElement("STREAM MAGIC ");
protected void readStreamHeader() throws IOException, StreamCorruptedException { dumpElement("STREAM MAGIC "); if (this.realInputStream.readShort() != STREAM_MAGIC) throw new StreamCorruptedException("Invalid stream magic number"); dumpElementln("STREAM VERSION "); if (this.realInputStream.readSh...
dumpElementln("STREAM VERSION ");
if(dump) dumpElementln("STREAM VERSION ");
protected void readStreamHeader() throws IOException, StreamCorruptedException { dumpElement("STREAM MAGIC "); if (this.realInputStream.readShort() != STREAM_MAGIC) throw new StreamCorruptedException("Invalid stream magic number"); dumpElementln("STREAM VERSION "); if (this.realInputStream.readSh...
cat.info("Did load class: " + name);
classLoaderCat.info("Did load class: " + name);
protected Class findClass(String name) throws ClassNotFoundException { File classFile = findClassFile(name); if (classFile == null) { throw new ClassNotFoundException(name); } Class newClass; try { FileInputStream in = new File...
cat.debug("CompilerClassLoader.findClassFile:" + name);
classLoaderCat.debug("CompilerClassLoader.findClassFile:" + name);
public File findClassFile(String name) { String fileName = name.replace('.', File.separatorChar) + ".class"; File f = new File( _destinationPath + File.separatorChar + fileName); if (f.exists() && f.isFile() && f.canRead()) { cat.debug("CompilerClassLoader.findCla...
checkAndCompileAllClasses();
WORequest r = (WORequest)theNotification.object(); String key = "/" + WOApplication.application().resourceRequestHandlerKey(); if(!(r.uri().indexOf(key) > 0)) checkAndCompileAllClasses();
public void checkAndCompileOnNotification(NSNotification theNotification) { //cat.debug("Received ApplicationWillDispatchRequestNotification"); checkAndCompileAllClasses(); }
try { NSArray items = NSArray.componentsSeparatedByString(line, ":"); sourceName = (String)items.objectAtIndex(0); if(items.count() > 1) packageName = (String)items.objectAtIndex(1); CacheEntry entry = new CacheEntry(sourcePath, sourceName, packageName); _filesToWatch.setObjectForKey((Object)entry,entry.classNameWithPa...
try { NSArray items = NSArray.componentsSeparatedByString(line, ":"); if(items.count() > 1) { sourceName = (String)items.objectAtIndex(0); packageName = (String)items.objectAtIndex(1); CacheEntry entry = new CacheEntry(sourcePath, sourceName, packageName); _filesToWatch.setObjectForKey((Object)entry,entry.classNameWith...
public void initialize() { if(WOApplication.application().isCachingEnabled()) { cat.info("I assume this is deployment mode, rapid-turnaround mode is disabled"); _filesToWatch = new NSMutableDictionary(); return; } if(!ERXUtilities.booleanValueWithDefault(System.getProp...
try { mainProject = com.webobjects.appserver._private.WOProjectBundle.projectBundleForProject(mainBundleName,false).projectPath(); } catch(Exception ex) { cat.warn("projectPaths exception: " + ex + " in "+ mainBundleName); } if(mainProject == null) { mainProject = "../.."; }
WOProjectBundle mainBundle = WOProjectBundle.projectBundleForProject(mainBundleName,false); if(mainBundle == null) { mainProject = System.getProperty("projects." + mainBundleName); if(mainProject == null) mainProject = "../.."; } else { mainProject = mainBundle.projectPath(); }
NSArray projectPaths() { NSArray frameworkNames = (NSArray)NSBundle.frameworkBundles().valueForKey("name"); NSMutableArray projectPaths = new NSMutableArray(); String mainProject = null; String mainBundleName = NSBundle.mainBundle().name(); try { // horrendous hack to avoid having to set the NSProjectPath manua...
String path = (String)e.nextElement(); cat.debug("Checking if framework '" +path+ "' has open project..."); com.webobjects.appserver._private.WOProjectBundle bundle = com.webobjects.appserver._private.WOProjectBundle.projectBundleForProject(path, true); if(bundle != null) { File f = new File(bundle.projectPath() + "/CP...
String name = (String)e.nextElement(); WOProjectBundle bundle = WOProjectBundle.projectBundleForProject(name, true); String path; if(bundle != null) { path = bundle.projectPath(); } else { path = System.getProperty("projects." + name); } if(path != null) { File f = new File( + "/CPFileList.txt"); if(f.exists()) { cat....
NSArray projectPaths() { NSArray frameworkNames = (NSArray)NSBundle.frameworkBundles().valueForKey("name"); NSMutableArray projectPaths = new NSMutableArray(); String mainProject = null; String mainBundleName = NSBundle.mainBundle().name(); try { // horrendous hack to avoid having to set the NSProjectPath manua...
else if (protocol.equals ("file")) { handler = new gnu.gcj.protocol.file.Handler (); }
private URLStreamHandler setURLStreamHandler(String protocol) { URLStreamHandler handler; // See if a handler has been cached for this protocol. if ((handler = (URLStreamHandler) handlers.get(protocol)) != null) return handler; // If a non-default factory has been set, use it to find the protocol. ...
(AgentComponent)new AgentFileComponent(agentName,
(AgentComponent)new AgentFileComponent(agentName, filenames[i],
private void initFromMultiFiles() { for (int i = 0; i < filenames.length; i++) { if(log.isDebugEnabled()) { log.debug("Parse File: " + filenames[i]); } String agentName = filenames[i]; if (agentName.endsWith(".ini")) agentName = agentName.substring(0, agentName.length()-4); /...
(AgentComponent)new AgentFileComponent(agentName,
(AgentComponent)new AgentFileComponent(agentName, agentFilename,
private void initFromSingleFile() { String filename = singleFilename; if(log.isDebugEnabled()) { log.debug("Parse File: " + filename); } // FIXME: Must handle getting non-Agents in the file desc = ComponentConnector.parseFile(filename); if (desc == null) return; for(int i=0; i < desc.le...
protected static final String DESCRIPTION_RESOURCE_NAME = "/org/cougaar/tools/csmart/society/society-base-description.html"; protected static final String BACKUP_DESCRIPTION = "A Society: Agents, Binders, Plugins, etc.";
public SocietyCDataComponent(ComponentData cdata, String assemblyId) { protected static final String DESCRIPTION_RESOURCE_NAME = "/org/cougaar/tools/csmart/society/society-base-description.html"; protected static final String BACKUP_DESCRIPTION = "A Society: Agents, Binders, Plugins, etc."; super(cdata....
public void produce (Vector v, FileInputStream is) throws IOException
public void produce (Vector v, InputStream is) throws IOException
public void produce (Vector v, FileInputStream is) throws IOException { reader = new BufferedReader (new InputStreamReader (is)); int width = -1, height = -1; for (int i = 0; i < 2; i++) { String line = reader.readLine (); StringTokenizer st = new StringTokenizer (line); st.nextToken (); // #define s...
if (userData instanceof ModifiableConfigurableComponent) { ModifiableConfigurableComponent mcc = (ModifiableConfigurableComponent) userData; if (!mcc.isEditable() && mcc.hasUnboundProperties()) return DnDConstants.ACTION_NONE; }
public int addElement(Transferable t, DefaultMutableTreeNode target, DefaultMutableTreeNode before) { DataFlavor[] flavors = t.getTransferDataFlavors(); int action = isDroppable(flavors, target); if (action != DnDConstants.ACTION_NONE) { ...
return map != null ? map.get(key) : null;
Object result = null; if(map != null) { result = map.get(key); } return result;
public static Object valueForKey(String key) { Map map = storageMap(false); return map != null ? map.get(key) : null; }
GLPbuffer pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(new GLCapabilities(), null, 2, 2, null);
GLCapabilities caps = new GLCapabilities(); caps.setDoubleBuffered(false); GLPbuffer pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(caps, null, 2, 2, null);
public static void main(String[] args) throws IOException { if (args.length != 2) { System.out.println("Usage: java demos.texture.TextureConvert [input file] [output file]"); System.out.println("Converts texture from input file format to output file format."); System.out.println("If output file form...
if (ivyRef.getRevision() != null && md.getModuleRevisionId().getRevision() != null &&
if (ivyRef.getRevision() != null && !ivyRef.getRevision().startsWith("working@") && md.getModuleRevisionId().getRevision() != null &&
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDate = null; ModuleRevisionId mrid = dd.getDependencyRevisionId(); // ...
substitutions.put(":assembly_desc:", idType + " assembly");
private String addAssembly(String idType) throws SQLException { String assemblyId; String assemblyIdPrefix = idType + "-"; substitutions.put(":assembly_id_pattern:", assemblyIdPrefix + "____"); substitutions.put(":assembly_type:", idType); assemblyId = getNextId("queryMaxAssemblyId", assemblyIdPref...
propNewServletCount = addProperty(PROP_NEW_SERVLETS_COUNT, PROP_NEW_SERVLETS_COUNT_DFLT); propNewServletCount.addPropertyListener(new ConfigurableComponentPropertyAdapter() { public void propertyValueChanged(PropertyEvent e) { updateNewServletCount((Integer)e.getProperty().getValue()); } }); propNewServletCount.setTool...
public void initProperties() { servletList = getServletList(); propServlets = new Property[servletList.size()]; if (servletList != null) { for (int i=0; i < servletList.size(); i++) { propServlets[i] = addBooleanProperty(((ServletListRecord)servletList.elementAt(i)).getName(), PROP_SERVLETS_DFLT)...
return hasBinding("shouldSubmitForm") ? ERXUtilities.booleanValue(valueForBinding("shouldSubmitForm")) : false;
return hasBinding("shouldSubmitForm") ? ERXValueUtilities.booleanValue(valueForBinding("shouldSubmitForm")) : false;
public boolean shouldSubmitForm() { return hasBinding("shouldSubmitForm") ? ERXUtilities.booleanValue(valueForBinding("shouldSubmitForm")) : false; }
boolean result=hasBinding("doNotUseForm") ? !ERXUtilities.booleanValue(valueForBinding("doNotUseForm")) : true;
boolean result=hasBinding("doNotUseForm") ? !ERXValueUtilities.booleanValue(valueForBinding("doNotUseForm")) : true;
public boolean useForm() { boolean result=hasBinding("doNotUseForm") ? !ERXUtilities.booleanValue(valueForBinding("doNotUseForm")) : true; // however, if the form does not have to be submitted AND javascript is enabled, no need for a form if (result && !shouldSubmitForm() && ((ERXSes...
return _parentId;
return _md != null ? _md.getResolvedModuleRevisionId() : _parentId;
public ModuleRevisionId getParentRevisionId() { return _parentId; }
frameArg.dispose();
try { frameArg.dispose(); } catch (NullPointerException npe) { if (log.isWarnEnabled()) log.warn("Bug 1439: Was a drop-down list open? Using: " + writeDebug(), npe); }
private void addTool(String toolName, String docName, JFrame tool) { NamedFrame.getNamedFrame().addFrame(toolName + ": " + docName, tool); final JFrame frameArg = tool; tool.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); tool.addWindowListener(new WindowAdapter() { public void windowC...
frameArg.dispose();
try { frameArg.dispose(); } catch (NullPointerException npe) { if (log.isWarnEnabled()) log.warn("Bug 1439: Was a drop-down list open? Using: " + writeDebug(), npe); }
public void windowClosing(WindowEvent e) { if(!frameArg.getGlassPane().isVisible()) { NamedFrame.getNamedFrame().removeFrame(frameArg); // Next line can cause NPE in Container.removeNotify(line 1878) // Is there some test we can/should do on the JFrame before calling? frameArg.dispose...
log.error("Error saving experiment: " + re);
log.error("Error saving experiment: ", re);
private void saveHelper() { modified = false; final Component c = this; GUIUtils.timeConsumingTaskStart(c); GUIUtils.timeConsumingTaskStart(csmart); try { new Thread("Save") { public void run() { // doSave(); experiment.saveToDb(saveToDbConflictHandler); ...
((SocietyBase)component).setAssemblyId(getAssemblyId());
((SocietyBase)component).oldAssemblyId = getAssemblyId();
public ModifiableComponent copy(String name) { if (log.isDebugEnabled()) { log.debug("Copying society " + this.getSocietyName() + " with assembly " + getAssemblyId() + " into new name " + name); } ModifiableComponent component = super.copy(name); // copy the assembly ID - the one under which this soc...
if (component != null) ((SocietyBase)component).saveToDatabase();
public ModifiableComponent copy(String name) { if (log.isDebugEnabled()) { log.debug("Copying society " + this.getSocietyName() + " with assembly " + getAssemblyId() + " into new name " + name); } ModifiableComponent component = super.copy(name); // copy the assembly ID - the one under which this soc...
oldCMTAsbid = getAssemblyId();
if (oldAssemblyId != null) oldCMTAsbid = oldAssemblyId; currAssID = getAssemblyId(); if (currAssID.startsWith("CMT")) { if (log.isDebugEnabled()) { log.debug("saveToDB not saving CMT society (" + getSocietyName() + ") with id " + currAssID + " and old ID " + oldCMTAsbid); } return false; }
public boolean saveToDatabase() { if(log.isInfoEnabled()) { log.info("saveToDatabase society (" + getSocietyName() + " with asb: " + getAssemblyId()); } // TODO: // Should I notice when I need to save and only save then? // Should I resist creating a new assembly ID, to avoid // breaking other ...