rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
protected void closeConnection()
protected synchronized void closeConnection()
protected void closeConnection() throws IOException { if (socket != null) { try { socket.close(); } finally { socket = null; } } }
protected InputStream getInputStream()
protected synchronized InputStream getInputStream()
protected InputStream getInputStream() throws IOException { if (socket == null) { getSocket(); } return in; }
protected OutputStream getOutputStream()
protected synchronized OutputStream getOutputStream()
protected OutputStream getOutputStream() throws IOException { if (socket == null) { getSocket(); } return out; }
protected Socket getSocket()
protected synchronized Socket getSocket()
protected Socket getSocket() throws IOException { if (socket == null) { String connectHostname = hostname; int connectPort = port; if (isUsingProxy()) { connectHostname = proxyHostname; connectPort = proxyPort; } socket = new Socket(); ...
public void connect(SocketAddress endpoint, int timeout) throws IOException
public void connect(SocketAddress endpoint) throws IOException
public void connect(SocketAddress endpoint, int timeout) throws IOException { if (isClosed()) throw new SocketException("socket is closed"); if (! (endpoint instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); // The Sun spec says that if we have an asso...
if (isClosed()) throw new SocketException("socket is closed"); if (! (endpoint instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); if (getChannel() != null && ! getChannel().isBlocking() && ! ((PlainSocketImpl) getImpl()).isInChannelOperation()) throw new IllegalBlocking...
connect(endpoint, 0);
public void connect(SocketAddress endpoint, int timeout) throws IOException { if (isClosed()) throw new SocketException("socket is closed"); if (! (endpoint instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); // The Sun spec says that if we have an asso...
int stop = locators.size(); for (int i = 0; i < stop; i++) { ((Locator) locators.get(i)).addAxis(axis); } updateNotesLocationOrder();
public Axis addAxis(Axis axis) { if (!canAddAxisObjToArray(axis)) //check if the axis can be added return null; getDataCube().incrementDimension(axis ); //increment the DataCube dimension by 1 getAxisList().add(axis); //update the locators that is related to this Array object int stop = l...
int stop = locators.size(); for (int i = 0; i < stop; i++) { ((Locator) locators.get(i)).addAxis(fieldAxis); }
updateChildLocators(fieldAxis, "add");
public FieldAxis addFieldAxis(FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return null; if (getFieldAxis() !=null) { List axisList = getAxisList(); axisList.remove(0); axisList.add(0, fieldAxis); //replace the old fieldAxis with the new one } else { //add fieldAxis an...
cloneObj.locators = new Vector();
cloneObj.locatorList = new Vector();
public Object clone() throws CloneNotSupportedException { Array cloneObj = (Array) super.clone(); //deep clone for DataCube cloneObj.setDataCube((DataCube) this.getDataCube().clone()); //there are no locators that are related to the cloned Array object cloneObj.locators = new Vector(); //set the pa...
locators.add(locatorObj);
locatorList.add(locatorObj);
public Locator createLocator() { Locator locatorObj = new Locator(this); //add this locator to the list of locators this Array object monitors locators.add(locatorObj); return locatorObj; }
public boolean removeAxis(Axis what) { boolean isRemoveSuccess = removeFromList(what, getAxisList(), "axisList"); if (isRemoveSuccess)
public boolean removeAxis(Axis axisObj) { boolean isRemoveSuccess = removeFromList(axisObj, getAxisList(), "axisList"); if (isRemoveSuccess) {
public boolean removeAxis(Axis what) { boolean isRemoveSuccess = removeFromList(what, getAxisList(), "axisList"); if (isRemoveSuccess) //remove successful getDataCube().decrementDimension(); //decrease the dimension by 1 return isRemoveSuccess; }
updateChildLocators(axisObj, "remove"); }
public boolean removeAxis(Axis what) { boolean isRemoveSuccess = removeFromList(what, getAxisList(), "axisList"); if (isRemoveSuccess) //remove successful getDataCube().decrementDimension(); //decrease the dimension by 1 return isRemoveSuccess; }
if (note == null) { Log.warn("in Notes.addNote(), the Note passed in is null"); return null; }
public Note addNote (Note note ) { if (note == null) { Log.warn("in Notes.addNote(), the Note passed in is null"); return null; } getNoteList().add(note); return note; }
if (unit == null) { Log.warn("in Units.addUnit(), the Unit passed in is null"); return null; }
public Unit addUnit(Unit unit) { if (unit == null) { Log.warn("in Units.addUnit(), the Unit passed in is null"); return null; } getUnitList().add(unit); return unit; }
if (dimension == 0) { Log.error(" in DataCube, incrementDimentsion, the dimension is 0"); return 0; } else return dimension--;
Log.errorln("in DataCube, decrementDimension(), methods empty, returning -1"); return -1;
public int decrementDimension() { if (dimension == 0) { Log.error(" in DataCube, incrementDimentsion, the dimension is 0"); return 0; } else return dimension--;}
os.log("#" + address);
if (debug) { os.log("#" + address + " VStack: " + vstack.toString()); } else { os.log("#" + address); }
public void startInstruction(int address) { if (debug) { BootLog.debug("#" + address + "\t" + vstack); } if (log) { os.log("#" + address); } this.curAddress = address; this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB || setCurIn...
final Item v1 = vstack.pop(); final Item v2 = vstack.pop();
vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1();
public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST...
v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK);
os.writePOP(Register.EAX); os.writePOP(Register.EBX); os.writePOP(Register.ECX); os.writePOP(Register.EDX); os.writePUSH(Register.EBX); os.writePUSH(Register.EAX); os.writePUSH(Register.EDX); os.writePUSH(Register.ECX); os.writePUSH(Register.EBX); os.writePUSH(Register.EAX);
public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST...
vstack.push(v1.clone(eContext)); vstack.push(v2); vstack.push(v1);
vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v2); vstack.push1(v1);
public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST...
final Item v3 = vstack.pop(); v3.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK);
final Item v3 = vstack.pop1();
public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST...
vstack.push(v1.clone(eContext)); vstack.push(v3); vstack.push(v2); vstack.push(v1);
vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1);
public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST...
vstack.push(v2.clone(eContext)); vstack.push(v1.clone(eContext)); vstack.push(v3); vstack.push(v2); vstack.push(v1);
vstack.push1(ifac.createStack(v2.getType())); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1);
public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST...
final Item v4 = vstack.pop(); v4.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); vstack.push(v2.clone(eContext)); vstack.push(v1.clone(eContext)); vstack.push(v4); vstack.push(v3); vstack.push(v2); vstack.push(v1);
final Item v4 = vstack.pop1(); vstack.push1(ifac.createStack(v2.getType())); vstack.push1(ifac.createStack(v1.getType())); vstack.push1(v4); vstack.push1(v3); vstack.push1(v2); vstack.push1(v1);
public final void visit_dup2_x2() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); final int c1 = v1.getCategory(); final int c2 = v2.getCategory(); v1.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUSTACK); v2.loadIf(eContext, Item.Kind.STACK | Item.Kind.FPUST...
os.writeLEA(SP, SP, 8);
os.writeLEA(SP, SP, -8);
final void loadTo(EmitterContext ec, Register lsb, Register msb) { final AbstractX86Stream os = ec.getStream(); final X86RegisterPool pool = ec.getPool(); final VirtualStack stack = ec.getVStack(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition...
public final void writeClassInitialize(Label curInstrLabel, Register classReg, VmType cls) { if (!cls.isInitialized()) { os.writeTEST(classReg, context.getVmTypeState().getOffset(), VmTypeState.ST_INITIALIZED); final Label afterInit = new Label(curInstrLabel + "$$after-classinit-ex"); os.writeJCC(afterInit, X86Constan...
public final boolean writeClassInitialize(VmMethod method, Register methodReg, Register scratch) { if (method.isStatic() && !method.isInitializer()) { final VmType cls = method.getDeclaringClass(); if (!cls.isInitialized()) { os.writePUSH(EAX); os.writeMOV(INTSIZE, EAX, methodReg, context .getVmMemberDeclaringClas...
public final void writeClassInitialize(Label curInstrLabel, Register classReg, VmType cls) { if (!cls.isInitialized()) { // Test declaringClass.modifiers os.writeTEST(classReg, context.getVmTypeState().getOffset(), VmTypeState.ST_INITIALIZED); final Label a...
return false;
public final void writeClassInitialize(Label curInstrLabel, Register classReg, VmType cls) { if (!cls.isInitialized()) { // Test declaringClass.modifiers os.writeTEST(classReg, context.getVmTypeState().getOffset(), VmTypeState.ST_INITIALIZED); final Label a...
vstack.push(createConst(type, fpv1 / fpv2));
vstack.push(createConst(type, fpv1 % fpv2));
final static void rem(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ...
os.writeFXCH(Register.ST1);
final static void rem(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ...
public static final int getArgSlotCount(String signature) { /*int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(')
public static final int getArgSlotCount(char[] signature) { int ofs = 0; final int len = signature.length; if (signature[ofs++] != '(')
public static final int getArgSlotCount(String signature) { /*int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' :...
char ch = signature.charAt(ofs++);
char ch = signature[ofs++];
public static final int getArgSlotCount(String signature) { /*int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' :...
while (signature.charAt(ofs) == '[')
while (signature[ofs] == '[')
public static final int getArgSlotCount(String signature) { /*int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' :...
if (signature.charAt(ofs) == 'L') {
if (signature[ofs] == 'L') {
public static final int getArgSlotCount(String signature) { /*int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' :...
while (signature.charAt(ofs) != ';')
while (signature[ofs] != ';')
public static final int getArgSlotCount(String signature) { /*int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' :...
"Invalid signature in getArgSlotCount: " + signature);*/ return getArgSlotCount(signature.toCharArray());
"Invalid signature in getArgSlotCount: " + String.valueOf(signature));
public static final int getArgSlotCount(String signature) { /*int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' :...
Log.infoln("Locator.setIterationOrder() has reset the current location to the dataCube origin.");
public void setIterationOrder (List axisIterationList) { int stop = axisIterationList.size(); for (int i = 0; i < stop; i++) { Object axisObj = axisIterationList.get(i); axisOrderList.add(axisObj); locations.put(axisObj, new Integer(0)); } }
System.out.println("restore screen partial");
private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk.hasNext() && !done) { byte b = bk.getNextByte(); switch (b) { case 0: case 1:...
screen52.clearGuiStuff();
private boolean writeToDisplayStructuredField() { boolean error = false; boolean done = false; int nextone; try { int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff)); while (!done) { int s = bk.getNextByte() & 0xff; switch (s) { ...
b = Character.toString(index).getBytes("Cp1141")[0];
b = characterToString(index).getBytes("Cp1141")[0];
public byte uni2ebcdic (char index) { if (convert) { if (codePage.equals("1141")) { byte b = 0x0; try { b = Character.toString(index).getBytes("Cp1141")[0]; } catch (java.io.UnsupportedEncodingException uee) { uee.printStackTrace(); ...
b = Character.toString(index).getBytes("Cp1140")[0];
b = characterToString(index).getBytes("Cp1140")[0];
public byte uni2ebcdic (char index) { if (convert) { if (codePage.equals("1141")) { byte b = 0x0; try { b = Character.toString(index).getBytes("Cp1141")[0]; } catch (java.io.UnsupportedEncodingException uee) { uee.printStackTrace(); ...
protected void setPendingInsert(boolean flag) {
protected void setPendingInsert(boolean flag, int icX, int icY) {
protected void setPendingInsert(boolean flag) { if (homePos != -1) pendingInsert = flag; }
if (homePos != -1)
pendingInsert = flag;
protected void setPendingInsert(boolean flag) { if (homePos != -1) pendingInsert = flag; }
pendingInsert = flag;
if (pendingInsert) { homePos = getPos(icX, icY); } if (!isStatusErrorCode()) { setCursor(icX, icY); }
protected void setPendingInsert(boolean flag) { if (homePos != -1) pendingInsert = flag; }
if (current == proc.getCurrentThread()) {
if (current.isInSystemException()) { proc.disableReschedule(); try { mt = reader.getVmStackTrace(current.getExceptionStackFrame(), current.getExceptionInstructionPointer(), STACKTRACE_LIMIT); } finally { proc.enableReschedule(); } } else if (current == proc.getCurrentThread()) {
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); Unsafe.die("getStackTrace"); return null; } else { current.inException = true; } if (Vm.getVm().getHeapManager().isL...
super();
public NoClassDefFoundError() { super(); }
public ArrayStoreException(String s) { super(s);
public ArrayStoreException() {
public ArrayStoreException(String s) { super(s); }
return resolved;
return true;
public boolean isResolved() { return resolved; }
ip = stack[i].getReturnAddress();
ip = Address.add(stack[i].getReturnAddress(), -1);
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,...
public BigDecimal (String num) throws NumberFormatException
public BigDecimal (BigInteger num)
public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while...
int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while (point < len) { char c = num.charAt (point); if (c == '.') { if (dot >= 0) throw new NumberFormatExceptio...
this (num, 0);
public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while...
registerPool.release(l.getLocation());
RegisterLocation regLoc = (RegisterLocation) l.getLocation(); registerPool.release(regLoc.getRegister());
private void expireOldRange(LiveRange lr) { for (int i=0; i<active.size(); i+=1) { LiveRange l = (LiveRange) active.get(i); if (l.getLastUseAddress() >= lr.getAssignAddress()) { return; } active.remove(l); registerPool.release(l.getLocation()); } }
public StackLocation() { this(0);
public StackLocation(int displacement) { super("local" + displacement); this.displacement = displacement;
public StackLocation() { this(0); }
HelpException(String message) { super(message);
HelpException() { super();
HelpException(String message) { super(message); }
public void append(SocketBuffer skbuf) {
public void append(int count) {
public void append(SocketBuffer skbuf) { if (next != null) { next.append(skbuf); } else { next = skbuf; } testBuffer(); }
next.append(skbuf);
next.append(count);
public void append(SocketBuffer skbuf) { if (next != null) { next.append(skbuf); } else { next = skbuf; } testBuffer(); }
next = skbuf;
setSize(size + count);
public void append(SocketBuffer skbuf) { if (next != null) { next.append(skbuf); } else { next = skbuf; } testBuffer(); }
kbArea = new Rectangle2D.Float(0,0,0,0);
private void checkOffScreenImage() { // do we have something already? if (bi == null) { bi = new GuiGraphicBuffer(); // allocate a buffer Image with appropriate size bi.getImageBuffer(fmWidth * numCols,fmHeight * (numRows + 2)); // fill in the areas tArea = new Recta...
kbArea.setRect(bi.getKBIndicatorArea());
private void drawOIA() { // get ourselves a global pointer to the graphics g2d = bi.drawOIA(fmWidth,fmHeight,numRows,numCols,font,colorBg,colorBlue); tArea.setRect(bi.getTextArea()); cArea.setRect(bi.getCommandLineArea()); aArea.setRect(bi.getScreenArea()); sArea.setRect(bi.getStatusAre...
if (bufferedKeys != null)
if (bufferedKeys != null) {
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; simulateMnemonic(getMnemonicValue(text)); } else { keysBuffered ...
setKBIndicatorOn(); }
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; simulateMnemonic(getMnemonicValue(text)); } else { keysBuffered ...
restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,""); isInField(lastPos); simulated = true; updateDirty();
if (isStatusErrorCode()) { restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,""); isInField(lastPos); updateDirty(); } setKBIndicatorOff(); simulated = true;
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ...
return getPreferredSize(c);
Dimension d = getPreferredSize(c); View view = (View) c.getClientProperty(BasicHTML.propertyKey); if (view != null) d.width += view.getMaximumSpan(View.X_AXIS) - view.getPreferredSpan(View.X_AXIS); return d;
public Dimension getMaximumSize(JComponent c) { return getPreferredSize(c); }
return getPreferredSize(c);
Dimension d = getPreferredSize(c); View view = (View) c.getClientProperty(BasicHTML.propertyKey); if (view != null) d.width -= view.getPreferredSpan(View.X_AXIS) - view.getMinimumSpan(View.X_AXIS); return d;
public Dimension getMinimumSize(JComponent c) { return getPreferredSize(c); }
FontMetrics fm; Toolkit g = tip.getToolkit(); text = tip.getTipText(); Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = tip.getInsets(); fm = g.getFontMetrics(tip.getFont()); SwingUtilities.layoutCompoundLabel(tip, fm, text, null, SwingConstants.CENTER, Sw...
String str = tip.getTipText(); FontMetrics fm = c.getFontMetrics(c.getFont()); Insets i = c.getInsets(); Dimension d = new Dimension(i.left + i.right, i.top + i.bottom); if (str != null && ! str.equals("")) { View view = (View) c.getClientProperty(BasicHTML.propertyKey); if (view != null) { d.width += (int) view.getPre...
public Dimension getPreferredSize(JComponent c) { JToolTip tip = (JToolTip) c; FontMetrics fm; Toolkit g = tip.getToolkit(); text = tip.getTipText(); Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = tip.getInsets(); fm = g....
propertyChangeHandler = new PropertyChangeHandler(); c.addPropertyChangeListener(propertyChangeHandler);
protected void installListeners(JComponent c) { // TODO: Implement this properly. }
BasicHTML.updateRenderer(c, ((JToolTip) c).getTipText());
public void installUI(JComponent c) { c.setOpaque(true); installDefaults(c); installListeners(c); }
Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = t.getFontMetrics(tip.getFont());
Font font = c.getFont(); FontMetrics fm = c.getFontMetrics(font);
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr...
SwingUtilities.layoutCompoundLabel(tip, fm, text, null, SwingConstants.CENTER, SwingConstants.CENTER, SwingConstants.CENTER, SwingConstants.CENTER, vr, ir, tr, 0);
Insets i = c.getInsets(); Dimension size = c.getSize(); Rectangle paintR = new Rectangle(i.left, i.top, size.width - i.left - i.right, size.height - i.top - i.bottom);
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr...
g.drawString(text, vr.x, vr.y + ascent);
View view = (View) c.getClientProperty(BasicHTML.propertyKey); if (view != null) view.paint(g, paintR); else g.drawString(text, paintR.x + 3, paintR.y + ascent);
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr...
g.setFont(oldFont);
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr...
if (propertyChangeHandler != null) { c.removePropertyChangeListener(propertyChangeHandler); propertyChangeHandler = null; }
protected void uninstallListeners(JComponent c) { // TODO: Implement this properly. }
BasicHTML.updateRenderer(c, "");
public void uninstallUI(JComponent c) { uninstallDefaults(c); uninstallListeners(c); }
return new Icon() { public int getIconHeight() { return 10; } public int getIconWidth() { return 10; } public void paintIcon(Component c, Graphics g, int x, int y) { if (c instanceof AbstractButton) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("CheckBox.highlight");...
if (checkBoxIcon == null) checkBoxIcon = new CheckBoxIcon(); return checkBoxIcon;
public static Icon getCheckBoxIcon() { return new Icon() { public int getIconHeight() { return 10; } public int getIconWidth() { return 10; } public void paintIcon(Component c, Graphics g, int x, int y) { if (c i...
return new Icon() { public int getIconHeight() { return 12;
if (radioButtonIcon == null) radioButtonIcon = new RadioButtonIcon(); return radioButtonIcon;
public static Icon getRadioButtonIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { UIDe...
public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel = defaults.getColor("Radio...
public static Icon getRadioButtonIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { UIDe...
public FileSystem getFileSystem() { return null; }
public final FileSystem getFileSystem() { return entry.getFileSystem(); }
public FileSystem getFileSystem() { return null; }
public boolean isValid() { return true; }
public final boolean isValid() { return true; }
public boolean isValid() { return true; }
public Iterator iterator() throws IOException { return new Iterator() { int offset = 0; EntryRecord parent = ISO9660Directory.this.entry.getCDFSentry(); byte[] buffer = parent.getExtentData(); public boolean hasNext() { return buffer[offset] > 0; }
public Iterator iterator() throws IOException { return new Iterator() {
public Iterator iterator() throws IOException { return new Iterator() { int offset = 0; EntryRecord parent = ISO9660Directory.this.entry.getCDFSentry(); byte[] buffer = parent.getExtentData(); public boolean hasNext() { return buffer[offset] > 0; } public Object next() { EntryRecord fEntry =...
public Object next() { EntryRecord fEntry = new EntryRecord(parent.getVolume(),buffer,offset); offset += fEntry.getLengthOfDirectoryEntry(); return new ISO9660Entry(fEntry); }
int offset = 0;
public Iterator iterator() throws IOException { return new Iterator() { int offset = 0; EntryRecord parent = ISO9660Directory.this.entry.getCDFSentry(); byte[] buffer = parent.getExtentData(); public boolean hasNext() { return buffer[offset] > 0; } public Object next() { EntryRecord fEntry =...
public void remove() { throw new UnsupportedOperationException("Not yet implemented"); } }; }
final EntryRecord parent = ISO9660Directory.this.entry .getCDFSentry(); final byte[] buffer = parent.getExtentData(); public boolean hasNext() { return ((offset < buffer.length) && (buffer[ offset] > 0)); } public Object next() { final ISO9660Volume volume = parent.getVolume(); final EntryRecord fEntry = new EntryRe...
public Iterator iterator() throws IOException { return new Iterator() { int offset = 0; EntryRecord parent = ISO9660Directory.this.entry.getCDFSentry(); byte[] buffer = parent.getExtentData(); public boolean hasNext() { return buffer[offset] > 0; } public Object next() { EntryRecord fEntry =...
public boolean hasNext() { return buffer[offset] > 0; }
public boolean hasNext() { return ((offset < buffer.length) && (buffer[ offset] > 0)); }
public boolean hasNext() { return buffer[offset] > 0; }
public Object next() { EntryRecord fEntry = new EntryRecord(parent.getVolume(),buffer,offset); offset += fEntry.getLengthOfDirectoryEntry(); return new ISO9660Entry(fEntry); }
public Object next() { final ISO9660Volume volume = parent.getVolume(); final EntryRecord fEntry = new EntryRecord(volume, buffer, offset, parent.getEncoding()); offset += fEntry.getLengthOfDirectoryEntry(); return new ISO9660Entry((ISO9660FileSystem) entry .getFileSystem(), fEntry); }
public Object next() { EntryRecord fEntry = new EntryRecord(parent.getVolume(),buffer,offset); offset += fEntry.getLengthOfDirectoryEntry(); return new ISO9660Entry(fEntry); }
super ("UTF-16", null);
super ("UTF-16", new String[] { "UTF16", "ISO-10646-UCS-2", "unicode", "csUnicode", "ucs-2" });
UTF_16 () { super ("UTF-16", null); }
boolean isValue = read_boolean();
boolean isObject = read_boolean();
public Object read_abstract_interface() { boolean isValue = read_boolean(); if (isValue) return read_value(); else return read_Object(); }
if (isValue) return read_value();
if (isObject) return read_Object();
public Object read_abstract_interface() { boolean isValue = read_boolean(); if (isValue) return read_value(); else return read_Object(); }
return read_Object();
return read_value();
public Object read_abstract_interface() { boolean isValue = read_boolean(); if (isValue) return read_value(); else return read_Object(); }
try { input.mark(512); int value_tag = input.read_long(); checkTag(value_tag); String codebase = null; String[] ids = null; String id = null; java.lang.Object ox = null; if (value_tag == vt_NULL) return null; else if (value_tag == vt_INDIRECTION) throw new NO_IMPLEMENT("Indirections unsupported"); else { if (...
return read(input, (String) null);
public static Serializable read(InputStream input) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { // We may need to jump back if the value is read via value factory. input.mark...
public Image createImage(byte[] data) { return createImage(data, 0, data.length); }
public abstract Image createImage(String filename);
public Image createImage(byte[] data) { return createImage(data, 0, data.length); }
public ICMPTimestampHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType();
public ICMPTimestampHeader( int type, int identifier, int seqNumber, int originateTimestamp, int receiveTimestamp, int transmitTimestamp) { super(type, 0, identifier, seqNumber);
public ICMPTimestampHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); if ((type != ICMP_TIMESTAMP) && (type != ICMP_TIMESTAMPREPLY)) { throw new IllegalArgumentException("Invalid type " + type); } this.originateTimestamp = skbuf.get32(8); this.receiveTimestamp = skbuf.get32(12); this.tran...
this.originateTimestamp = skbuf.get32(8); this.receiveTimestamp = skbuf.get32(12); this.transmitTimestamp = skbuf.get32(16);
this.originateTimestamp = originateTimestamp; this.receiveTimestamp = receiveTimestamp; this.transmitTimestamp = transmitTimestamp;
public ICMPTimestampHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); if ((type != ICMP_TIMESTAMP) && (type != ICMP_TIMESTAMPREPLY)) { throw new IllegalArgumentException("Invalid type " + type); } this.originateTimestamp = skbuf.get32(8); this.receiveTimestamp = skbuf.get32(12); this.tran...
public ICMPAddressMaskHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType();
public ICMPAddressMaskHeader(int type, int identifier, int seqNumber, IPv4Address subnetMask) { super(type, 0, identifier, seqNumber);
public ICMPAddressMaskHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); if ((type != ICMP_ADDRESS) && (type != ICMP_ADDRESSREPLY)) { throw new IllegalArgumentException("Invalid type " + type); } this.subnetMask = new IPv4Address(skbuf, 8); }
this.subnetMask = new IPv4Address(skbuf, 8);
this.subnetMask = subnetMask;
public ICMPAddressMaskHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); if ((type != ICMP_ADDRESS) && (type != ICMP_ADDRESSREPLY)) { throw new IllegalArgumentException("Invalid type " + type); } this.subnetMask = new IPv4Address(skbuf, 8); }
public ICMPEchoHeader(SocketBuffer skbuf) { super(skbuf);
public ICMPEchoHeader(int type, int identifier, int seqNumber) { super(type, 0, identifier, seqNumber);
public ICMPEchoHeader(SocketBuffer skbuf) { super(skbuf); }
attribHash.put("axisDatatype",new XMLAttribute(new StringDataFormat(), Constants.OBJECT_TYPE));
attribHash.put("axisDatatype",new XMLAttribute(new StringDataFormat(), Constants.STRING_TYPE));
private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOrder.a...
JViewport vp = (JViewport)parent; Component view = vp.getView(); if (view != null) return view.getMinimumSize(); else return new Dimension();
return new Dimension(4, 4);
public Dimension minimumLayoutSize(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); if (view != null) return view.getMinimumSize(); else return new Dimension(); }
public void connect(SocketAddress address) throws SocketException
public void connect(InetAddress address, int port)
public void connect(SocketAddress address) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketAddress tmp = (InetSocketAddress) address; con...
if (isClosed()) throw new SocketException("socket is closed");
if (address == null) throw new IllegalArgumentException("Connect address may not be null");
public void connect(SocketAddress address) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketAddress tmp = (InetSocketAddress) address; con...
if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type");
if ((port < 1) || (port > 65535)) throw new IllegalArgumentException("Port number is illegal: " + port);
public void connect(SocketAddress address) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketAddress tmp = (InetSocketAddress) address; con...
InetSocketAddress tmp = (InetSocketAddress) address; connect(tmp.getAddress(), tmp.getPort());
SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkConnect(address.getHostName(), port); try { getImpl().connect(address, port); remoteAddress = address; remotePort = port; } catch (SocketException e) { }
public void connect(SocketAddress address) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketAddress tmp = (InetSocketAddress) address; con...
public abstract int read(ByteBuffer dst) throws IOException;
public final long read(ByteBuffer[] dsts) throws IOException { long b = 0; for (int i = 0; i < dsts.length; i++) b += read(dsts[i]); return b; }
public abstract int read(ByteBuffer dst) throws IOException;
public DatagramPacket(byte[] buf, int length) { this(buf, 0, length);
public DatagramPacket(byte[] buf, int offset, int length) { setData(buf, offset, length); address = null; port = -1;
public DatagramPacket(byte[] buf, int length) { this(buf, 0, length); }