rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public void setHours(int hours) { this.hrs = hours; invalidate(); }
public void setHours(int hours) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.HOUR_OF_DAY, hours); time = cal.getTimeInMillis(); }
public void setHours(int hours) { this.hrs = hours; invalidate(); }
public void setMinutes(int minutes) { this.min = minutes; invalidate(); }
public void setMinutes(int minutes) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.MINUTE, minutes); time = cal.getTimeInMillis(); }
public void setMinutes(int minutes) { this.min = minutes; invalidate(); }
public void setMonth(int month) { this.month = month; invalidate(); }
public void setMonth(int month) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.MONTH, month); time = cal.getTimeInMillis(); }
public void setMonth(int month) { this.month = month; invalidate(); }
public void setSeconds(int seconds) { this.sec = seconds; invalidate(); }
public void setSeconds(int seconds) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.SECOND, seconds); time = cal.getTimeInMillis(); }
public void setSeconds(int seconds) { this.sec = seconds; invalidate(); }
public void setTime(long millis) { this.millis = millis; valid = false; mvalid = true;
public void setTime(long time) { this.time = time;
public void setTime(long millis) { this.millis = millis; valid = false; mvalid = true; }
public void setYear(int year) { this.year = year; invalidate(); }
public void setYear(int year) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.YEAR, 1900 + year); time = cal.getTimeInMillis(); }
public void setYear(int year) { this.year = year; invalidate(); }
public String toGMTString() { if (!isGMT) { Date d = new Date(this.millis); d.isGMT = true; return d.toGMTString(); } refresh_components(); return (date) + " " + months[month] + " " + (1900 + year) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + "GMT"; }
public String toGMTString() { java.text.DateFormat format = java.text.DateFormat.getInstance(); format.setTimeZone(TimeZone.getTimeZone("GMT")); return format.format(this); }
public String toGMTString() { if (!isGMT) { Date d = new Date(this.millis); d.isGMT = true; return d.toGMTString(); } refresh_components(); return (date) + " " + months[month] + " " + (1900 + year) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + "GMT"; }
public String toLocaleString() { return toString();
public String toLocaleString() { return java.text.DateFormat.getInstance().format(this);
public String toLocaleString() { return toString(); }
public Label(String text) { this(text, LEFT); }
Label() { this("", LEFT); }
public Label(String text) { this(text, LEFT); }
public List(int rows, boolean multipleMode) { this.rows = rows; this.multipleMode = multipleMode; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); }
List() { this(4, false); }
public List(int rows, boolean multipleMode) { this.rows = rows; this.multipleMode = multipleMode; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); }
public void add(String item) { add(item, -1); }
add(String item) { add (item, -1); }
public void add(String item) { add(item, -1); }
public synchronized void select(int index) { ListPeer lp = (ListPeer) getPeer();
select(int index) { ListPeer lp = (ListPeer)getPeer();
public synchronized void select(int index) { ListPeer lp = (ListPeer) getPeer(); if (lp != null) lp.select(index); }
public synchronized int[] getSelectedIndexes() { if (peer != null) {
getSelectedIndexes() { if (peer != null) {
public synchronized int[] getSelectedIndexes() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } return selected; }
public synchronized int getSelectedIndex() { if (peer != null) {
getSelectedIndex() { if (peer != null) {
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
if (selected == null || selected.length > 1)
if (selected == null || selected.length != 1)
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
public String getDisplayLanguage(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("languages." + language); } catch (MissingResourceException e) { return language; }
public String getDisplayLanguage() { return getDisplayLanguage(defaultLocale);
public String getDisplayLanguage(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("languages."...
public String getDisplayCountry(Locale inLocale)
public String getDisplayCountry()
public String getDisplayCountry(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("terri...
try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("territories." + country); } catch (MissingResourceException e) { return country; }
return getDisplayCountry(defaultLocale);
public String getDisplayCountry(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("terri...
public String getDisplayVariant(Locale inLocale)
public String getDisplayVariant()
public String getDisplayVariant(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("varia...
try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("variants." + variant); } catch (MissingResourceException e) { return variant; }
return getDisplayVariant(defaultLocale);
public String getDisplayVariant(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("varia...
public TextField() {
TextField() {
public TextField() { this("", 1); }
public synchronized void setText(String text) {
setText(String text) {
public synchronized void setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); }
}
setCaretPosition(0); }
public synchronized void setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); }
public void setEchoChar(char echoChar) { this.echoChar = echoChar; TextFieldPeer tfp = (TextFieldPeer) getPeer(); if (tfp != null) tfp.setEchoChar(echoChar); }
setEchoChar(char echoChar) { setEchoCharacter (echoChar); }
public void setEchoChar(char echoChar) { this.echoChar = echoChar; TextFieldPeer tfp = (TextFieldPeer) getPeer(); if (tfp != null) tfp.setEchoChar(echoChar); }
else if (propName.equals("iconifiable"))
else if (propName.equals("iconable"))
public void propertyChange(PropertyChangeEvent evt) { String propName = evt.getPropertyName(); if (propName.equals("closable")) { if (evt.getNewValue().equals(Boolean.TRUE)) closeButton.setVisible(true); else closeButton.setVisible(false); } else if (propName.equals("iconifiable")) { ...
enableActions();
public void propertyChange(PropertyChangeEvent evt) { String propName = evt.getPropertyName(); if (propName.equals("closable")) { if (evt.getNewValue().equals(Boolean.TRUE)) closeButton.setVisible(true); else closeButton.setVisible(false); } else if (propName.equals("iconifiable")) { ...
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component source = kfm.getFocusOwner(); if (source == null) source = tk.getTop(); KeyEvent me = new KeyEvent(source, id, time, modifiers, keyCode,
KeyEvent me = new KeyEvent(tk.getTop(), id, time, modifiers, keyCode,
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component source = kfm.getFocusOwner(); // TODO get th...
public DataBufferInt(int[] dataArray, int size) {
public DataBufferInt(int size) {
public DataBufferInt(int[] dataArray, int size) { super(TYPE_INT, size); data = dataArray; }
data = dataArray;
data = new int[size];
public DataBufferInt(int[] dataArray, int size) { super(TYPE_INT, size); data = dataArray; }
public void write(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p);
public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddres...
public void write(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p); }
public DatagramSocket() throws SocketException
protected DatagramSocket(DatagramSocketImpl impl)
public DatagramSocket() throws SocketException { this(new InetSocketAddress(0)); }
this(new InetSocketAddress(0)); }
if (impl == null) throw new NullPointerException("impl may not be null"); this.impl = impl; this.remoteAddress = null; this.remotePort = -1; }
public DatagramSocket() throws SocketException { this(new InetSocketAddress(0)); }
return new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e);
PublicKey result = new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e); log.exiting(this.getClass().getName(), "decodePublicKey()", result); return result;
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPu...
log.exiting(this.getClass().getName(), "encodePublicKey()", result);
public byte[] encodePublicKey(PublicKey key) { if (! (key instanceof GnuRSAPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, RSA_ALG_OID); GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; BigInteger n = rsaKey.getN(); BigInteger e = rsaKe...
boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) {
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
stylesheet.bindings.push(global);
stylesheet.bindings.push(type);
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
stylesheet.bindings.set(name, value, global);
stylesheet.bindings.set(name, value, type); if (stylesheet.debug) { System.err.println(this + ": set to " + value);
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
if (apply) {
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
stylesheet.bindings.pop(global); }
stylesheet.bindings.pop(type);
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
if (global)
buf.append(",type="); switch (type)
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (select != null) { buf.append(",select="); buf.append(select); } if (global) { buf.append(",global"); } buf.ap...
buf.append(",global");
case Bindings.VARIABLE: buf.append("variable"); break; case Bindings.PARAM: buf.append("param"); break; case Bindings.WITH_PARAM: buf.append("with-param"); break;
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (select != null) { buf.append(",select="); buf.append(select); } if (global) { buf.append(",global"); } buf.ap...
public boolean containsKey(String name, boolean global)
public boolean containsKey(QName name, int type)
public boolean containsKey(String name, boolean global) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
Iterator i = global ? variables.iterator() : parameters.iterator();
Iterator i = null; switch (type) { case VARIABLE: i = variables.iterator(); break; case PARAM: i = parameters.iterator(); break; case WITH_PARAM: Map ctx = (Map) withParameters.getFirst(); return ctx.containsKey(name); } if (i != null) {
public boolean containsKey(String name, boolean global) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
}
public boolean containsKey(String name, boolean global) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
protected void doResolveMember(AbstractVmClassLoader clc) {
protected void doResolveMember(VmClassLoader clc) {
protected void doResolveMember(AbstractVmClassLoader clc) { VmType vmClass = getConstClass().getResolvedVmClass(); if (!vmClass.isInterface()) { throw new IncompatibleClassChangeError(getClassName() + " must be an interface"); } final VmMethod vmMethod; vmMethod = vmClass.getMethod(getName(), getSignature()); ...
public InvalidName(String reason)
public InvalidName()
public InvalidName(String reason) { super(reason); }
super(reason);
public InvalidName(String reason) { super(reason); }
cdrBufOutput output = new cdrBufOutput();
BufferedCdrOutput output = new BufferedCdrOutput();
public static ServiceContext[] addExceptionContext(ServiceContext[] current, Throwable exception, Object details) { try { ServiceContext[] c = new ServiceContext[current.length + 1]; if (current.length > 0) System.arraycopy(current, 0, c, 0, current.length); cdrBufOutput outp...
if (details instanceof cdrOutput) ((cdrOutput) details).cloneSettings(output);
if (details instanceof AbstractCdrOutput) ((AbstractCdrOutput) details).cloneSettings(output);
public static ServiceContext[] addExceptionContext(ServiceContext[] current, Throwable exception, Object details) { try { ServiceContext[] c = new ServiceContext[current.length + 1]; if (current.length > 0) System.arraycopy(current, 0, c, 0, current.length); cdrBufOutput outp...
public synchronized void addPropertyChangeListener(PropertyChangeListener value0) { }
public void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); }
public synchronized void addPropertyChangeListener(PropertyChangeListener value0) { // TODO } // addPropertyChangeListener()
public void addTreeSelectionListener(TreeSelectionListener value0) { }
public void addTreeSelectionListener(TreeSelectionListener listener) { listenerList.add(TreeSelectionListener.class, listener); }
public void addTreeSelectionListener(TreeSelectionListener value0) { // TODO } // addTreeSelectionListener()
protected void fireValueChanged(TreeSelectionEvent value0) { }
protected void fireValueChanged(TreeSelectionEvent event) { TreeSelectionListener[] listeners = getTreeSelectionListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].valueChanged(event); }
protected void fireValueChanged(TreeSelectionEvent value0) { // TODO } // fireValueChanged()
public EventListener[] getListeners(Class value0) { return null; }
public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); }
public EventListener[] getListeners(Class value0) { return null; // TODO } // getListeners()
public synchronized void removePropertyChangeListener(PropertyChangeListener value0) { }
public void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); }
public synchronized void removePropertyChangeListener(PropertyChangeListener value0) { // TODO } // removePropertyChangeListener()
public void removeTreeSelectionListener(TreeSelectionListener value0) { }
public void removeTreeSelectionListener(TreeSelectionListener listener) { listenerList.remove(TreeSelectionListener.class, listener); }
public void removeTreeSelectionListener(TreeSelectionListener value0) { // TODO } // removeTreeSelectionListener()
super(TYPE_SHORT, size);
super(TYPE_SHORT, size, 1, 0); bankData = new short[1][];
public DataBufferShort(int size) { super(TYPE_SHORT, size); data = new short[size]; }
bankData[0] = data;
public DataBufferShort(int size) { super(TYPE_SHORT, size); data = new short[size]; }
setSelectedItem(((ComboBoxEditor) e.getSource()).getItem());
setSelectedItem(getEditor().getItem());
public void actionPerformed(ActionEvent e) { setSelectedItem(((ComboBoxEditor) e.getSource()).getItem()); setPopupVisible(false); }
throws NotImplementedException
public boolean selectWithKeyChar(char keyChar) { // FIXME: Need to implement return false; }
private final int readLeInt(DataInput di, byte[] b) throws IOException
private int readLeInt(DataInput di, byte[] b) throws IOException
private final int readLeInt(DataInput di, byte[] b) throws IOException { di.readFully(b, 0, 4); return ((b[0] & 0xff) | (b[1] & 0xff) << 8) | ((b[2] & 0xff) | (b[3] & 0xff) << 8) << 16; }
private final int readLeShort(DataInput di, byte[] b) throws IOException
private int readLeShort(DataInput di, byte[] b) throws IOException
private final int readLeShort(DataInput di, byte[] b) throws IOException { di.readFully(b, 0, 2); return (b[0] & 0xff) | (b[1] & 0xff) << 8; }
comp.addMouseListener(this);
public GLightweightPeer(Component comp) { this.comp = comp; }
public void setCursor(Cursor cursor) {}
public void setCursor(Cursor cursor) { Component p = comp.getParent(); while (p != null && p.isLightweight()) p = p.getParent(); if (p != null) { ComponentPeer peer = p.getPeer(); if (peer != null) peer.setCursor(cursor); } }
public void setCursor(Cursor cursor) {}
"ISO-10646-UCS-2", "unicode", "csUnicode", "ucs-2"
"ISO-10646-UCS-2", "unicode", "csUnicode", "ucs-2", "UnicodeBig"
UTF_16 () { super ("UTF-16", new String[] { // witnessed by the internet "UTF16", /* These names are provided by * http://oss.software.ibm.com/cgi-bin/icu/convexp?s=ALL */ "ISO-10646-UCS-2", "unicode", "csUnicode", "ucs-2" }); }
return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, false);
return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, true);
public CharsetEncoder newEncoder () { return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, false); }
/*System.out.println(Arrays.asList(stack));
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS /*System.out.println(Arrays.asList(stack)); for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; ...
if (stack[i] != securityClass && stack[i] != resourceBundleClass)
if (stack[i] != Security.class && stack[i] != ResourceBundle.class)
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS /*System.out.println(Arrays.asList(stack)); for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; ...
*/ return stack[3].getClassLoader();
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); //LS /*System.out.println(Arrays.asList(stack)); for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; ...
ResourceBundle result = null;
private static final ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, ...
public abstract void insertText(String text, int pos);
void insertText(String text, int pos);
public abstract void insertText(String text, int pos);
public abstract Dimension minimumSize(int rows, int cols);
Dimension minimumSize(int rows, int cols);
public abstract Dimension minimumSize(int rows, int cols);
public abstract Dimension preferredSize(int rows, int cols);
Dimension preferredSize(int rows, int cols);
public abstract Dimension preferredSize(int rows, int cols);
public abstract void replaceText(String text, int start_pos, int end_pos);
void replaceText(String text, int start_pos, int end_pos);
public abstract void replaceText(String text, int start_pos, int end_pos);
for (Iterator i = provider().charsets(); i.hasNext(); ) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); }
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); CharsetProvider[] providers = providers2(); for (int j = 0; j < providers.length; j++) { for (Iterator i = providers[j].charsets(); i.hasNext(); ) { Charset cs = (Charset) i.n...
Charset cs = null;
Charset cs = provider().charsetForName(charsetName); if (cs == null) {
private static Charset charsetForName(String charsetName) { checkName (charsetName); Charset cs = null; CharsetProvider[] providers = providers2(); for (int i = 0; i < providers.length; i++) { cs = providers[i].charsetForName(charsetName); if (cs != null) break; } return cs; }
}
private static Charset charsetForName(String charsetName) { checkName (charsetName); Charset cs = null; CharsetProvider[] providers = providers2(); for (int i = 0; i < providers.length; i++) { cs = providers[i].charsetForName(charsetName); if (cs != null) break; } return cs; }
Enumeration en = ClassLoader.getSystemResources ("META-INF/services/java.nio.charset.spi.CharsetProvider");
Iterator i = ServiceFactory.lookupProviders(CharsetProvider.class);
private static CharsetProvider[] providers2() { if (providers == null) { try { Enumeration en = ClassLoader.getSystemResources ("META-INF/services/java.nio.charset.spi.CharsetProvider"); LinkedHashSet set = new LinkedHashSet(); set.add(provider()); ...
set.add(provider()); while (en.hasMoreElements()) { BufferedReader rdr = new BufferedReader(new InputStreamReader (((URL) (en.nextElement())).openStream())); while (true) { String s = rdr.readLine(); if (s == null) break; CharsetProvider p = (CharsetProvider) ((Class.forName(s)).newInstance()); set.add(p); } }
while (i.hasNext()) set.add(i.next());
private static CharsetProvider[] providers2() { if (providers == null) { try { Enumeration en = ClassLoader.getSystemResources ("META-INF/services/java.nio.charset.spi.CharsetProvider"); LinkedHashSet set = new LinkedHashSet(); set.add(provider()); ...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return JobState.class; }
public final String getName()
public String getName()
public final String getName() { return "job-state"; }
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return NumberUp.class; }
public final String getName()
public String getName()
public final String getName() { return "number-up"; }
VmClassLoader vmc = new VmClassLoader(new File(".").toURL(), new VmX86Architecture());
VmSystemClassLoader vmc = new VmSystemClassLoader(new File(".").toURL(), new VmX86Architecture());
public static void main(String args[]) throws SecurityException, IOException, ClassNotFoundException { String className = "org.jnode.vm.compiler.ir.IRGenerator"; if (args.length > 0) { className = args[0]; } VmClassLoader vmc = new VmClassLoader(new File(".").toURL(), new VmX86Architecture()); VmType type = vmc...
renumberArray = new SSAStack[bytecode.getMaxStack() + bytecode.getNoLocals()];
public IRControlFlowGraph(VmByteCode bytecode) { // First determine the basic blocks final IRBasicBlockFinder bbf = new IRBasicBlockFinder(); BytecodeParser.parse(bytecode, bbf); this.bblocks = bbf.createBasicBlocks(); startBlock = bblocks[0]; renumberArray = new SSAStack[bytecode.getMaxStack() + bytecode.getNoL...
this(dataType, w, h, 0, numberOfBits, 0); }
this(dataType, w, h, numberOfBits, 0, 0); }
public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, 0, numberOfBits, 0); }
return new primitiveArrayTypeCode(TCKind.tk_short);
return new ArrayTypeCode(TCKind.tk_short);
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_short); }
buffer = new BufferedInputStream(stream); buffer.mark(READLIMIT);
public MemoryCacheImageInputStream(InputStream stream) { this.stream = stream; }
throws IOException, NotImplementedException
throws IOException
public void flushBefore(long position) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
throw new Error("not implemented");
long prevFlushedPosition = getFlushedPosition(); super.flushBefore(position); buffer.reset(); buffer.skip(getFlushedPosition() - prevFlushedPosition); buffer.mark(READLIMIT);
public void flushBefore(long position) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
return stream.read();
int retval = buffer.read(); if (retval != -1) streamPos++; return retval;
public int read() throws IOException { setBitOffset(0); return stream.read(); }
for (int i0 = 0; i0 < value.component_data.length; i0++) output.write_octet(value.component_data [ i0 ]);
try { output.write(value.component_data); } catch (IOException e) { MARSHAL m = new MARSHAL(); m.initCause(e); throw m; }
public static void write(OutputStream output, TaggedComponent value) { output.write_long(value.tag); output.write_long(value.component_data.length); for (int i0 = 0; i0 < value.component_data.length; i0++) output.write_octet(value.component_data [ i0 ]); }
value.component_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.component_data.length; i0++) value.component_data [ i0 ] = input.read_octet();
value.component_data = new byte[input.read_long()]; try { input.read(value.component_data); } catch (IOException e) { MARSHAL m = new MARSHAL(); m.initCause(e); throw m; }
public static TaggedComponent read(InputStream input) { TaggedComponent value = new TaggedComponent(); value.tag = input.read_long(); value.component_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.component_data.length; i0++) value.component_data [ i0 ] = input.read_octet(); re...
public InflaterHuffmanTree(byte[] codeLengths) throws DataFormatException
InflaterHuffmanTree(byte[] codeLengths) throws DataFormatException
public InflaterHuffmanTree(byte[] codeLengths) throws DataFormatException { buildTree(codeLengths); }
public int getSymbol(StreamManipulator input) throws DataFormatException
int getSymbol(StreamManipulator input) throws DataFormatException
public int getSymbol(StreamManipulator input) throws DataFormatException { int lookahead, symbol; if ((lookahead = input.peekBits(9)) >= 0) { if ((symbol = tree[lookahead]) >= 0) { input.dropBits(symbol & 15); return symbol >> 4; } int subtree = -(symbol >> 4); int bitlen = symbol & 15; if ((l...
throw new Error("Do not use add() on JInternalPane directly. Use getContentPane().add() instead"); super.addImpl(comp, constraints, index);
throw new Error("Do not use add() on JInternalFrame directly. Use " + "getContentPane().add() instead"); getContentPane().add(comp, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JInternalPane directly. Use getContentPane().add() instead"); super.addImpl(comp, constraints, index); }
if (operation != DO_NOTHING_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DISPOSE_ON_CLOSE) throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE");
public void setDefaultCloseOperation(int operation) { if (operation != DO_NOTHING_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DISPOSE_ON_CLOSE) throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); defaultCloseOperation = operation; }
restartItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_restart"));
restartItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuRestart"));
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
reloadItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_reload"));
reloadItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuReload"));
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
cancelItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_cancel"));
cancelItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuCancel"));
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
saveItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_save"));
saveItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuSave"));
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...