rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
boolean beforeEnd = isBefore(year, month, day, dayOfWeek, millis, | boolean beforeEnd = isBefore(year, month, day, dayOfWeek, millis + dstSavings, | public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { int daysInMonth = getDaysInMonth(month, year); if (day < 1 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); if (dayOfWeek < Calendar.SUNDAY || dayOfWeek > Calendar... |
public int read(byte[] data, int offset, int length) throws IOException | public int read() throws IOException | public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }... |
int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; } length = Math.min(length, remain); System.arraycopy(this.blockData, this.blockDataPosition, data, offset, length); this.blockDataPosition += length; return length; | if (this.blockDataPosition >= this.blockDataBytes) readNextBlock(); return (this.blockData[this.blockDataPosition++] & 0xff); | public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }... |
return this.realInputStream.read(data, offset, length); | return this.realInputStream.read(); | public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }... |
public void write(byte[] b, int off, int len) throws IOException | public void write (int data) throws IOException | public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... |
if (len < 0) throw new IndexOutOfBoundsException(); | if (blockDataCount == BUFFER_SIZE) drain(); | public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... |
if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); writeBlockDataHeader(len); realOutput.write(b, off, len); } | blockData[ blockDataCount++ ] = (byte)data; | public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... |
realOutput.write(b, off, len); | realOutput.write(data); | public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... |
if (SwingTextFieldPeer.this.awtComponent != null) retVal = SwingTextFieldPeer.this.awtComponent.isShowing(); | if (textField != null) retVal = textField.isShowing(); | public boolean isShowing() { boolean retVal = false; if (SwingTextFieldPeer.this.awtComponent != null) retVal = SwingTextFieldPeer.this.awtComponent.isShowing(); return retVal; } |
SwingTextField swingTextField = new SwingTextField(); | SwingTextField swingTextField = new SwingTextField(textField); | public SwingTextFieldPeer(TextField textField) { SwingTextField swingTextField = new SwingTextField(); swingTextField.setText(textField.getText()); init(textField, swingTextField); } |
public void select(int startPos, int endPos) | public void select(int start_pos, int endPos) | public void select(int startPos, int endPos) { // TODO: Must be implemented. } |
else if (bmodel.isRollover()) | else if (bmodel.isRollover() && !(c.getParent() instanceof JToolBar)) | private void paintOceanButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkSha... |
throws ParseException | public void commitEdit() { } /* TODO */ | |
{ } | { this(LOWERED); } | public EtchedBorder() { } |
os.writeMOV(helper.ADDRSIZE, r, r, (TIBLayout.VMTYPE_INDEX + VmArray.DATA_OFFSET) * slotSize); vstack.push(obj); | os.writeMOV(helper.ADDRSIZE, resultr, r, (TIBLayout.VMTYPE_INDEX + VmArray.DATA_OFFSET) * slotSize); obj.release(ec); vstack.push(result); | public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final ItemFactory ifac = ec.getItemFactor... |
"SplitPaneDivider.draggingColor", new ColorUIResource(Color.DARK_GRAY), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | |
{ this.delegate = delegate; } | { if (delegate == null) throw new IllegalArgumentException(); this.delegate = delegate; } | public BorderUIResource(Border delegate) { this.delegate = delegate; } |
public static Border createBevelBorder( int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { return null; } | public static Border createBevelBorder (int type) { return new BevelBorder (type); } | public static Border createBevelBorder( int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { /* Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas. Parameters: type - an int specifying eit... |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | |
StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); | return "comment"; | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } |
jComponent.addInternalFrameListener(new WindowEventDispatcher()); | public SwingBaseWindowPeer(SwingToolkit toolkit, awtT window, peerT jComponent) { super(toolkit, window, jComponent); } | |
public WrongAdapter(String why) | public WrongAdapter() | public WrongAdapter(String why) { super(why); } |
super(why); | public WrongAdapter(String why) { super(why); } | |
protected Item cloneConstant() { | protected DoubleWordItem cloneConstant() { | protected Item cloneConstant() { return createConst(getValue()); } |
protected abstract Item cloneConstant(); | protected abstract DoubleWordItem cloneConstant(); | protected abstract Item cloneConstant(); |
protected Inet4Address(byte[] addr, String host) { super(addr, host); | Inet4Address(byte[] addr) { this(addr, null, null); | protected Inet4Address(byte[] addr, String host) { super(addr, host); } |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof InetAddress)) | public boolean equals(Object obj) { if (! (obj instanceof InetAddress)) | public boolean equals(Object obj) { if (obj == null || !(obj instanceof InetAddress)) return false; byte[] addr1 = addr; byte[] addr2 = ((InetAddress) obj).addr; if (addr1.length != addr2.length) return false; for (int i = addr1.length; --i >= 0;) if (addr1[i] != addr2[i]) return false; return true; } |
public boolean isAnyLocalAddress() { return (addr[0] == 0) && (addr[1] == 0) && (addr[2] == 0) && (addr[3] == 0); | public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0 }; return Arrays.equals(addr, anylocal); | public boolean isAnyLocalAddress() { return (addr[0] == 0) && (addr[1] == 0) && (addr[2] == 0) && (addr[3] == 0); } |
private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName); } | private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName, null); } | private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName); } |
if (view == null) return; | public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ... | |
else return new Dimension(); | public Dimension minimumLayoutSize(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); return view.getMinimumSize(); } | |
else return new Dimension(); | public Dimension preferredLayoutSize(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); return view.getPreferredSize(); } | |
return null; | return getPreferredSize(); | public Dimension getPreferredScrollableViewportSize() { return null; } |
return 1; | if (orientation == VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; | public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } |
ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { Point bottomLeft = new Point(visibleRect.x, visibleRect.y + visibleRect.height); int curIdx = lui.locationToIndex(this, bottomLeft); Rectangle curBounds = lui.getCellBounds(this, curIdx, curIdx); if (curBounds.y + curBounds.h... | public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | |
revalidate(); repaint(); | public void setModel(ListModel m) { ListModel old = model; if (old != null) old.removeListDataListener(listListener); model = m; if (model != null) model.addListDataListener(listListener); firePropertyChange(MODEL_PROPERTY_CHANGED, old, m); } | |
revalidate(); repaint(); | public void setSelectionModel(ListSelectionModel l) { ListSelectionModel old = selectionModel; if (old != null) old.removeListSelectionListener(listListener); selectionModel = l; if (selectionModel != null) selectionModel.addListSelectionListener(listListener); firePropertyChange(SELECTION_M... | |
return encode(s, "UTF-8"); | return encode(s, System.getProperty("file.encoding", "8859_1")); | public static String encode(String s) { try { return encode(s, "UTF-8"); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } } |
public abstract void addChangeListener(ChangeListener listener); | void addChangeListener(ChangeListener listener); | public abstract void addChangeListener(ChangeListener listener); |
public abstract void removeChangeListener(ChangeListener listener); | void removeChangeListener(ChangeListener listener); | public abstract void removeChangeListener(ChangeListener listener); |
if (isShowing ()) { | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | |
getToolkit().getSystemEventQueue().postEvent(ce); | ContainerListener[] listeners = getContainerListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].componentAdded(ce); | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... |
repaint(); } | repaint(comp.getX(), comp.getY(), comp.getWidth(), comp.getHeight()); | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... |
JOptionPane() { this("mess"); } | public JOptionPane() { this("JOptionPane message", PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null); } | JOptionPane() { this("mess"); } |
return null; | if (accessibleContext == null) accessibleContext = new AccessibleJOptionPane(); return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } |
{ return val; } | { return value; } | public Object getValue() { return val; } |
public void setValue(Object v) { val = v; } | public void setValue(Object newValue) { if (value != newValue) { Object old = value; value = newValue; firePropertyChange(VALUE_PROPERTY, old, value); } } | public void setValue(Object v) { val = v; } |
public static int showConfirmDialog(JFrame frame, String yes, String no, int bla) { return 0; } | public static int showConfirmDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); JDialog dialog = pane.createDialog(parentComponent, "Select an Option"); dialog.pack(); dialog.show(); return ((Integer) pane.getValue()).intValue(); } | public static int showConfirmDialog(JFrame frame, String yes, String no, int bla) { return 0; } |
public static String showInputDialog(JFrame frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { return (String) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, init); } | public static String showInputDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE); pane.setWantsInput(true); JDialog dialog = pane.createDialog(parentComponent, null); dialog.pack(); dialog.show(); return (String) pane.getInputValue(); } | public static String showInputDialog(JFrame frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { return (String) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i... |
public static void showMessageDialog(Component frame, String msg, String title, int bla) { DoShowOptionDialog(frame, msg, title, bla, 0, null, null, null); } | public static void showMessageDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message, INFORMATION_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, null); dialog.pack(); dialog.show(); } | public static void showMessageDialog(Component frame, String msg, String title, int bla) { DoShowOptionDialog(frame, msg, title, bla, 0, null, null, null); } |
public static int showOptionDialog(Component frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { Integer a = (Integer) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, init); if (a == null) return -1; return a.intValue(); } | public static int showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) { JOptionPane pane = new JOptionPane(message, messageType, optionType, icon, options, initialValue); JDialog dialog = pane.createDialog(parentCom... | public static int showOptionDialog(Component frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { Integer a = (Integer) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i... |
public void updateUI() { setUI((OptionPaneUI)UIManager.getUI(this)); } | public void updateUI() { setUI((OptionPaneUI) UIManager.getUI(this)); invalidate(); } | public void updateUI() { setUI((OptionPaneUI)UIManager.getUI(this)); } |
Functional_ORB.setPort(PORT); | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | |
Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); NamingContextExt namer = new Ext(new TransientContext()); orb.connect(namer, getDefaultKey()); | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | |
orb.setPort(port); | Functional_ORB.setPort(port); NamingContextExt namer = new Ext(new TransientContext()); orb.connect(namer, getDefaultKey()); | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... |
Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | |
setPriority(NORM_PRIORITY + 1); | int priority = DEFAULT_PRIORITY; try { String priorityString = System.getProperty("gnu.awt.dispatchthread.priority"); if (priorityString != null) { priority = Integer.parseInt(priorityString); } } catch (NumberFormatException ex) { } setPriority(priority); | EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; setPriority(NORM_PRIORITY + 1); } |
{ state = UNINITIALIZED; | public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); } | |
} | public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); } | |
{ state = UNINITIALIZED; | public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); } | |
} | public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); } | |
if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / blockSize; long blockOffset = (fileOffset+bytesRead) % blockSize; long copyLength = Math.min(len-byt... | synchronized(iNode) { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / blockSize; long blockOffset = (fileOffset+bytesRead) % blockSize; long copyLen... | public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / block... |
if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+len>src.length) throw new IOException("src is shorter than what you want to write"); log.debug("write(fileOffset="+fileOffset+", src, off, len="+len+")"); final l... | synchronized(iNode) { if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+len>src.length) throw new IOException("src is shorter than what you want to write"); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... |
byte[] dest; if( !( (blockOffset==0)&&(copyLength==blockSize) ) && (blockIndex < blocksAllocated)) dest = iNode.getDataBlock(blockIndex); else dest = new byte[(int)blockSize]; | log.debug("write(fileOffset="+fileOffset+", src, off, len="+len+")"); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... |
System.arraycopy( src, (int)(off+bytesWritten), dest, (int)blockOffset, (int)copyLength); if(blockIndex >= blocksAllocated) { try{ iNode.allocateDataBlock(blockIndex); }catch(FileSystemException fe) { throw new IOException("Internal filesystem exception",fe); | final long blockSize = iNode.getExt2FileSystem().getBlockSize(); long blocksAllocated = iNode.getAllocatedBlockCount(); long bytesWritten=0; while( bytesWritten < len ) { long blockIndex = (fileOffset+bytesWritten) / blockSize; long blockOffset = (fileOffset+bytesWritten) % blockSize; long copyLength = Math.min(len-by... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... |
blocksAllocated++; | iNode.writeDataBlock(blockIndex, dest); bytesWritten += copyLength; | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... |
iNode.writeDataBlock(blockIndex, dest); | iNode.setSize( fileOffset+len ); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... |
bytesWritten += copyLength; | iNode.setMtime(System.currentTimeMillis()/1000); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... |
iNode.setSize( fileOffset+len ); iNode.setMtime(System.currentTimeMillis()/1000); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | |
return (v1 << 16) | (v2 << 16) | (v3 << 8) | v4; | return (v1 << 24) | (v2 << 16) | (v3 << 8) | v4; | private final int getu4() { int v1 = bytecode.get() & 0xFF; int v2 = bytecode.get() & 0xFF; int v3 = bytecode.get() & 0xFF; int v4 = bytecode.get() & 0xFF; return (v1 << 16) | (v2 << 16) | (v3 << 8) | v4; } |
break; | public boolean emit(String mnemonic, List operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case ADC_ISN: ... | |
public DefaultMutableTreeNode(Object userObject) { this.userObject = userObject; | public DefaultMutableTreeNode() { | public DefaultMutableTreeNode(Object userObject) { this.userObject = userObject; } // DefaultMutableTreeNode() |
public TreePath getParentPath() { return new TreePath(this.getPath(), path.length - 1); } | public TreePath getParentPath() { if (path.length <= 1) return null; return new TreePath(this.getPath(), path.length - 1); } | public TreePath getParentPath() { return new TreePath(this.getPath(), path.length - 1); } // getParentPath() |
while (treepath[index] != this.path[index2]) { | while (treepath[index] != this.path[index2]) | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... |
} | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | |
if (index2 != this.path.length) { | if (index2 != this.path.length) | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... |
ActionMapUIResource am = new ActionMapUIResource(); am.put("showSystemMenu", new ShowSystemMenuAction()); BasicLookAndFeel blaf = (BasicLookAndFeel) UIManager.getLookAndFeel(); ActionMap audioActionMap = blaf.getAudioActionMap(); am.setParent(audioActionMap); SwingUtilities.replaceUIActionMap(frame, am); | protected void installKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | |
SwingUtilities.replaceUIActionMap(frame, null); SwingUtilities.replaceUIInputMap(frame, JComponent.WHEN_IN_FOCUSED_WINDOW, null); | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | |
public void resizeFrame(JComponent frame, int x, int y, | void resizeFrame(JComponent frame, int x, int y, | public void resizeFrame(JComponent frame, int x, int y, int width, int height); |
public void beginResizingFrame(JComponent frame, int direction); | void beginResizingFrame(JComponent frame, int direction); | public void beginResizingFrame(JComponent frame, int direction); |
public void endResizingFrame(JComponent frame); | void endResizingFrame(JComponent frame); | public void endResizingFrame(JComponent frame); |
public void activateFrame(JInternalFrame vframe); | void activateFrame(JInternalFrame vframe); | public void activateFrame(JInternalFrame vframe); |
public void closeFrame(JInternalFrame frame); | void closeFrame(JInternalFrame frame); | public void closeFrame(JInternalFrame frame); |
public void deactivateFrame(JInternalFrame frame); | void deactivateFrame(JInternalFrame frame); | public void deactivateFrame(JInternalFrame frame); |
public void deiconifyFrame(JInternalFrame frame); | void deiconifyFrame(JInternalFrame frame); | public void deiconifyFrame(JInternalFrame frame); |
public void iconifyFrame(JInternalFrame frame); | void iconifyFrame(JInternalFrame frame); | public void iconifyFrame(JInternalFrame frame); |
public void maximizeFrame(JInternalFrame frame); | void maximizeFrame(JInternalFrame frame); | public void maximizeFrame(JInternalFrame frame); |
public void minimizeFrame(JInternalFrame frame); | void minimizeFrame(JInternalFrame frame); | public void minimizeFrame(JInternalFrame frame); |
public long getValue (); | long getValue(); | public long getValue (); |
public void reset (); | void reset(); | public void reset (); |
public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { | public static <S extends Enum<S>> S valueOf(Class<S> etype, String s) { | public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... |
if (isAttribute || defaultNS == null) { | if (isAttribute) { if (qName == "xmlns" && namespaceDeclUris) name[0] = NSDECL; else name[0] = ""; } else if (defaultNS == null) { | String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // detect errors in call sequence declsOK = false; // Select the appropriate table. if (isAttribute) { table = attributeNameTable; } else { table = elementNameTable; } // Start b... |
if (uri == null) { | if (uri == null || (!isAttribute && "xmlns".equals (prefix))) { | String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // detect errors in call sequence declsOK = false; // Select the appropriate table. if (isAttribute) { table = attributeNameTable; } else { table = elementNameTable; } // Start b... |
protected void installListeners(JToolBar toolbar) | protected void installListeners() | protected void installListeners(JToolBar toolbar) { dockingListener = createDockingListener(); toolBar.addMouseListener(dockingListener); toolBar.addMouseMotionListener(dockingListener); propertyListener = createPropertyListener(); toolBar.addPropertyChangeListener(propertyListener); toolBarContLis... |
installListeners(toolBar); | installListeners(); | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JToolBar) { toolBar = (JToolBar) c; toolBar.setOpaque(true); installDefaults(); installComponents(); installListeners(toolBar); installKeyboardActions(); } } |
public EtchedBorderUIResource() { } | public EtchedBorderUIResource() { super(); } | public EtchedBorderUIResource() { } |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { switch (etchType) | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.