rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
out.close(); in.close(); s.close(); | myIpStreamOut.close(); myIpStreamIn.close(); myIpSocket.close(); | public void disconnect() throws SmsException { try { out.close(); in.close(); s.close(); }catch (Exception e) { e.printStackTrace(); throw new SmsException(e.getMessage()); } } |
String server = "213.61.220.27"; int port = 1500; try { s = new Socket(server, port); out = new DataOutputStream(s.getOutputStream()); in = new DataInputStream(s.getInputStream()); } catch (UnknownHostException e) { throw new SmsException("Unknown host"); } catch (IOException e) { System.err.println ("SendSMS.send: C... | String strUCP60Uid, strUCP60Pwd; myIpHost = theProps.getProperty("smsj.ucp.ip.host"); myIpPort = Integer.parseInt(theProps.getProperty("smsj.ucp.ip.port")); strUCP60Uid = theProps.getProperty("smsj.ucp.ucp60.uid"); strUCP60Pwd = theProps.getProperty("smsj.ucp.ucp60.password"); if (strUCP60Uid == null || strUCP60Pwd == ... | public void init(Properties theProps) throws SmsException { //Normaly we sould get the Data from the Props, but temporaly hardCoded String server = "213.61.220.27";// server="10.2.1.107"; int port = 1500;// port = 3000; try { s = new Socket(server, port); out = new DataOutputStream... |
public void send(SmsMessage theMessage, SmsAddress theSender, SmsAddress theDestination) | public void send(SmsMessage theMessage, SmsAddress theDest, SmsAddress theSender) | public void send(SmsMessage theMessage, SmsAddress theSender, SmsAddress theDestination) throws SmsException { SmsPdu msgPdu[] = null; if (theDestination.getTypeOfNumber() == SmsConstants.TON_ALPHANUMERIC) { throw new SmsException("Cannot sent SMS to ALPHANUMERIC address");... |
if (theDestination.getTypeOfNumber() == SmsConstants.TON_ALPHANUMERIC) | if (theDest.getTypeOfNumber() == SmsConstants.TON_ALPHANUMERIC) | public void send(SmsMessage theMessage, SmsAddress theSender, SmsAddress theDestination) throws SmsException { SmsPdu msgPdu[] = null; if (theDestination.getTypeOfNumber() == SmsConstants.TON_ALPHANUMERIC) { throw new SmsException("Cannot sent SMS to ALPHANUMERIC address");... |
byte[] submitCmd = buildSubmit(dcs, msgPdu[i], moreToSend,theSender,theDestination); | byte[] submitCmd = buildSubmit(dcs, msgPdu[i], moreToSend,theSender,theDest); | public void send(SmsMessage theMessage, SmsAddress theSender, SmsAddress theDestination) throws SmsException { SmsPdu msgPdu[] = null; if (theDestination.getTypeOfNumber() == SmsConstants.TON_ALPHANUMERIC) { throw new SmsException("Cannot sent SMS to ALPHANUMERIC address");... |
if(!s.isConnected() || out==null || in==null) { | if(!myIpSocket.isConnected() || myIpStreamOut==null || myIpStreamIn==null) { | public String sendUcp(byte[] data) throws SmsException { if(!s.isConnected() || out==null || in==null) { throw new SmsException("Please Connect first"); } System.out.println("SMSC send: " + new String(data,0,data.length)); StringBuffer strBuf; try { out.write(data); out.flush();// wait(20); byt... |
out.write(data); out.flush(); | myIpStreamOut.write(data); myIpStreamOut.flush(); | public String sendUcp(byte[] data) throws SmsException { if(!s.isConnected() || out==null || in==null) { throw new SmsException("Please Connect first"); } System.out.println("SMSC send: " + new String(data,0,data.length)); StringBuffer strBuf; try { out.write(data); out.flush();// wait(20); byt... |
if ((b[0] = in.readByte()) != 2) { | if ((b[0] = myIpStreamIn.readByte()) != 2) { | public String sendUcp(byte[] data) throws SmsException { if(!s.isConnected() || out==null || in==null) { throw new SmsException("Please Connect first"); } System.out.println("SMSC send: " + new String(data,0,data.length)); StringBuffer strBuf; try { out.write(data); out.flush();// wait(20); byt... |
while ( (b[0] = in.readByte()) != 3) { | while ( (b[0] = myIpStreamIn.readByte()) != 3) { | public String sendUcp(byte[] data) throws SmsException { if(!s.isConnected() || out==null || in==null) { throw new SmsException("Please Connect first"); } System.out.println("SMSC send: " + new String(data,0,data.length)); StringBuffer strBuf; try { out.write(data); out.flush();// wait(20); byt... |
super(32); | super(33); | public UcpSeries50(byte operation) { super(32); setOR('O'); setOT(operation); } |
public static String readSeptets(InputStream theIs, int theLength) throws IOException | public static String readSeptets(byte[] theArray, int theLength) | public static String readSeptets(InputStream theIs, int theLength) throws IOException { StringBuffer msg = new StringBuffer(160); int rest = 0; int restBits = 0; while(msg.length() < theLength) { int data = theIs.read(); if (data == -1) {... |
StringBuffer msg = new StringBuffer(160); int rest = 0; int restBits = 0; while(msg.length() < theLength) | try | public static String readSeptets(InputStream theIs, int theLength) throws IOException { StringBuffer msg = new StringBuffer(160); int rest = 0; int restBits = 0; while(msg.length() < theLength) { int data = theIs.read(); if (data == -1) {... |
int data = theIs.read(); if (data == -1) { throw new IOException("Unexpected end of stream"); } rest |= (data << restBits); restBits += 8; while (restBits >= 7) { msg.append(fromGsmCharset((byte)(rest & 0x7f))); rest >>>= 7; restBits -= 7; } } return msg.toString(); | return readSeptets(new ByteArrayInputStream(theArray), theLength); } catch (IOException ex) { return null; } | public static String readSeptets(InputStream theIs, int theLength) throws IOException { StringBuffer msg = new StringBuffer(160); int rest = 0; int restBits = 0; while(msg.length() < theLength) { int data = theIs.read(); if (data == -1) {... |
while ((line = brErr.readLine()) != null) { if (debug) log.error(line); } | public void run() { BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream())); try { String line; while ((line = br.readLine()) != null) { if (debug) log.debug(line); } } catch (IOException e) { log.warn("error reading from process output", e); return; } } | |
public static String getProperty(String arg0) { return p.getProperty(arg0); | public static String getProperty(String arg0, String arg1) { return p.getProperty(arg0, arg1); | public static String getProperty(String arg0) { return p.getProperty(arg0); } |
JComponent component) { | ConsoleTextPane consoleTextPane) { | public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JComponent component) { super("", // title true, //resizable false, //not closable, because they can't be recreated true, //maximizable true... |
this.component = component; | this.consoleTextPane = consoleTextPane; | public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JComponent component) { super("", // title true, //resizable false, //not closable, because they can't be recreated true, //maximizable true... |
menuBar.add(statusMenu); | public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JComponent component) { super("", // title true, //resizable false, //not closable, because they can't be recreated true, //maximizable true... | |
initKeyMap((ConsoleTextPane)component); | initKeyMap(consoleTextPane); | public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JComponent component) { super("", // title true, //resizable false, //not closable, because they can't be recreated true, //maximizable true... |
getContentPane().add(component); | getContentPane().add(consoleTextPane); | public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JComponent component) { super("", // title true, //resizable false, //not closable, because they can't be recreated true, //maximizable true... |
search_actionPerformed(); | display_actionPerformed(); | public void actionPerformed(ActionEvent e) { search_actionPerformed(); } |
searchNext_actionPerformed(); | displayAll_actionPerformed(); | public void actionPerformed(ActionEvent e) { searchNext_actionPerformed(); } |
history_actionPerformed(); | search_actionPerformed(); | public void actionPerformed(ActionEvent e) { history_actionPerformed(); } |
boolean found = ((ConsoleTextPane)component).searchNext(); | boolean found = consoleTextPane.searchNext(); | public void searchNext_actionPerformed() { // search and highlight boolean found = ((ConsoleTextPane)component).searchNext(); searchNextAction.setEnabled(found); component.revalidate(); component.repaint(); } |
component.revalidate(); component.repaint(); | consoleTextPane.revalidate(); consoleTextPane.repaint(); | public void searchNext_actionPerformed() { // search and highlight boolean found = ((ConsoleTextPane)component).searchNext(); searchNextAction.setEnabled(found); component.revalidate(); component.repaint(); } |
boolean found = ((ConsoleTextPane)component).search(s); | boolean found = consoleTextPane.search(s); | public void search_actionPerformed() { // get string to search for String s = JOptionPane.showInputDialog("Search string:"); if (s == null || s.length() == 0) { return; } // search and highlight boolean found = ((ConsoleTextPane)component).search(s); searchNextAction.setEnabled(found); } |
IliasCommit(); | private final void IliasFinish () { if (!isLaunched) return; IliasLaunchContent ( "../scorm_presentation.php?cmd=view" +"&sco_id=" + IliasScoId +"&ref_id=" + IliasRefId +"&status=" + core.sysGet ("cmi.core.lesson_status") +"&totime=" + core.sysGet ("cmi.core.total_time") ); isLaunched = false; } | |
if (l != null && r != null) IliasScoCmi.put (l, r); | if (l != null) IliasScoCmi.put (l, r); | public final void IliasSetValue (String l, String r) { say ("IliasSetValue("+l+"="+r+")"); if (l != null && r != null) IliasScoCmi.put (l, r); } |
if (prototypeEntityName == null && !(ERXModelGroup_.patchModelsOnLoad())) { | if (prototypeEntityName == null && !(ERXModelGroup.patchModelsOnLoad())) { | protected String prototypeEntityNameForModel(EOModel model) { String modelName = model.name(); String prototypeEntityName = ERXSystem.getProperty(modelName + ".EOPrototypesEntity"); NSDictionary databaseConfig = databaseConfigForModel(model); if (prototypeEntityName == null && databaseConfig != ... |
useConnectionBroker = ERXProperties.booleanForKeyWithDefault(USE_CONNECTION_BROKER_KEY, false) ? Boolean.FALSE : Boolean.TRUE; | useConnectionBroker = ERXProperties.booleanForKeyWithDefault(USE_CONNECTION_BROKER_KEY, false) ? Boolean.TRUE : Boolean.FALSE; | public static boolean useConnectionBroker() { if (useConnectionBroker == null) { useConnectionBroker = ERXProperties.booleanForKeyWithDefault(USE_CONNECTION_BROKER_KEY, false) ? Boolean.FALSE : Boolean.TRUE; } return useConnectionBroker.booleanValue(); } |
log.error(fnfe.toString()); | log.error("Exception, Cannot find logfile", fnfe); | public void fillFromLogFile(String logFileName) { AttributeSet a = new javax.swing.text.SimpleAttributeSet(); try { // clear document remove(0, getLength()); } catch (Exception e) { if(log.isErrorEnabled()) { log.error("Exception clearing output window", e); } } // read log f... |
log.error(ioe.toString()); | log.error("Exception", ioe); | public void fillFromLogFile(String logFileName) { AttributeSet a = new javax.swing.text.SimpleAttributeSet(); try { // clear document remove(0, getLength()); } catch (Exception e) { if(log.isErrorEnabled()) { log.error("Exception clearing output window", e); } } // read log f... |
log.error(ble.toString()); | log.error("Exception", ble); | public void fillFromLogFile(String logFileName) { AttributeSet a = new javax.swing.text.SimpleAttributeSet(); try { // clear document remove(0, getLength()); } catch (Exception e) { if(log.isErrorEnabled()) { log.error("Exception clearing output window", e); } } // read log f... |
log.error(e.toString()); | log.error("Exception", e); | public static void main(String[] args) { ConsoleStyledDocument doc = new ConsoleStyledDocument(); AttributeSet a = new javax.swing.text.SimpleAttributeSet(); Logger log = CSMART.createLogger("org.cougaar.tools.csmart.ui.console.ConsoleStyledDocument"); // with MAX_CHARACTER = 5 this prints: // abc, abc... |
parent = (ComposableComponent) stream.readObject(); children = (List) stream.readObject(); | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); Map properties = getMyProperties(); int n = stream.readInt(); myPropertyEntries = new ArrayList(n); for (int i = 0; i < n; i++) { PropertyEntry entry = (PropertyEntry)stre... | |
stream.writeObject(parent); stream.writeObject(children); | private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); Map properties = getMyProperties(); stream.writeInt(properties.size()); for (Iterator i = properties.entrySet().iterator(); i.hasNext(); ) { PropertyEntry entry = new PropertyEntry((Map.Entry)i.... | |
protected DataHandler prepareMail () throws MessagingException { | protected DataHandler prepareMail () { | protected DataHandler prepareMail () throws MessagingException { return new DataHandler (textContent, "text/plain; charset=\"" + charset () + "\""); } |
Iterator taskIter = tasks.iterator(); ArrayList results = new ArrayList(2); int nTasks = 0; int nLowConfidence = 0; int nUnallocated = 0; Integer[] data = new Integer[3]; while(taskIter.hasNext()) { Task t = (Task)taskIter.next(); nTasks++; PlanElement pe = t.getPlanElement(); if(pe != null) { AllocationResult estResu... | Iterator taskIter = tasks.iterator(); ArrayList results = new ArrayList(2); int nTasks = 0; int nLowConfidence = 0; int nUnallocated = 0; Integer[] data = new Integer[3]; while(taskIter.hasNext()) { Task t = (Task)taskIter.next(); nTasks++; PlanElement pe = t.getPlanElement(); if(pe != null) { AllocationResult estResu... | protected ArrayList collectData(SimpleServletSupport support) { Collection tasks = getAllTasks(support); Iterator taskIter = tasks.iterator(); ArrayList results = new ArrayList(2); int nTasks = 0; int nLowConfidence = 0; int nUnallocated = 0; Integer[] data = new Integer[3]; while(t... |
} } else { nUnallocated++; } | } else { nUnallocated++; } } data[0] = new Integer(nTasks); data[1] = new Integer(nUnallocated); data[2] = new Integer(nLowConfidence); results.add(support.getAgentIdentifier()); results.add(data); return results; | protected ArrayList collectData(SimpleServletSupport support) { Collection tasks = getAllTasks(support); Iterator taskIter = tasks.iterator(); ArrayList results = new ArrayList(2); int nTasks = 0; int nLowConfidence = 0; int nUnallocated = 0; Integer[] data = new Integer[3]; while(t... |
data[0] = new Integer(nTasks); data[1] = new Integer(nUnallocated); data[2] = new Integer(nLowConfidence); results.add(support.getAgentIdentifier()); results.add(data); return results; } | protected ArrayList collectData(SimpleServletSupport support) { Collection tasks = getAllTasks(support); Iterator taskIter = tasks.iterator(); ArrayList results = new ArrayList(2); int nTasks = 0; int nLowConfidence = 0; int nUnallocated = 0; Integer[] data = new Integer[3]; while(t... | |
HttpServletResponse response) throws IOException, ServletException | HttpServletResponse response) throws IOException | public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { this.out = response.getWriter(); // create a URL parameter visitor ServletUtil.ParamVisitor vis = new ServletUtil.ParamVisitor() { public void setParam(St... |
this.out = response.getWriter(); | public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { this.out = response.getWriter(); // create a URL parameter visitor ServletUtil.ParamVisitor vis = new ServletUtil.ParamVisitor() { public void setParam(St... | |
try { ArrayList list = collectData(support); out.print(list); } catch(Exception e) { System.out.println("CSMART_MetricsServlet Exception: " + e); e.printStackTrace(); | try { ArrayList list = collectData(support); if (list != null ){ this.out = response.getOutputStream(); ObjectOutputStream p = new ObjectOutputStream(out); p.writeObject(list); System.out.println("Sent Objects"); } } catch (Exception e) { System.out.println("CSMART_MetricsServlet Exception: " + e); e.printStackTrace()... | public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { this.out = response.getWriter(); // create a URL parameter visitor ServletUtil.ParamVisitor vis = new ServletUtil.ParamVisitor() { public void setParam(St... |
} | public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { this.out = response.getWriter(); // create a URL parameter visitor ServletUtil.ParamVisitor vis = new ServletUtil.ParamVisitor() { public void setParam(St... | |
support.queryBlackboard(TASK_PRED); if (col == null) { col = new ArrayList(0); | support.queryBlackboard(TASK_PRED); if (col == null) { col = new ArrayList(0); } return col; | protected static Collection getAllTasks(SimpleServletSupport support) { Collection col = support.queryBlackboard(TASK_PRED); if (col == null) { col = new ArrayList(0); } return col; } |
return col; } | protected static Collection getAllTasks(SimpleServletSupport support) { Collection col = support.queryBlackboard(TASK_PRED); if (col == null) { col = new ArrayList(0); } return col; } | |
HttpServletResponse response) throws IOException, ServletException | HttpServletResponse response) throws IOException | public void doGet( HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // create a new "MetricProvider" context per request MetricProvider mp = new MetricProvider(support); mp.execute(request, response); } |
if( other != null && compare( other, method ) > 0 ){ | if( other != null && compare( other, method ) >= 0 ){ | protected void generate() throws NoSuchMethodException { if (wreplace == null) { wreplace = Enhancer.InternalReplace.class.getMethod("writeReplace", TYPES_OBJECT); } declare_interface(Factory.class); declare_field(Modifier.PRIVATE, MethodInterceptor.class, INTERCEPTOR_... |
private Set getModuleRevisionIds() { | public Set getModuleRevisionIds() { | private Set getModuleRevisionIds() { Set mrids = new HashSet(); for (Iterator iter = _dependencies.values().iterator(); iter.hasNext();) { IvyNode node = (IvyNode) iter.next(); mrids.add(node.getResolvedId()); } return mrids; } |
mrids.add(node.getResolvedId()); | if (!node.isEvicted(getConfiguration()) && !node.hasProblem()) { mrids.add(node.getResolvedId()); } | private Set getModuleRevisionIds() { Set mrids = new HashSet(); for (Iterator iter = _dependencies.values().iterator(); iter.hasNext();) { IvyNode node = (IvyNode) iter.next(); mrids.add(node.getResolvedId()); } return mrids; } |
DependencyDescriptor dd = node.getDependencyDescriptor(); | DependencyDescriptor dd = node.getDependencyDescriptor(parent); | public Collection resolveConflicts(IvyNode parent, Collection conflicts) { if (conflicts.size() < 2) { return conflicts; } for (Iterator iter = conflicts.iterator(); iter.hasNext();) { IvyNode node = (IvyNode)iter.next(); DependencyDescriptor dd = node.getDepend... |
public void addToBothSidesOfBugs(er.bugtracker.Bug object) { | public void addToBothSidesOfBugs(Bug object) { | public void addToBothSidesOfBugs(er.bugtracker.Bug object) { addObjectToBothSidesOfRelationshipWithKey(object, "bugs"); } |
public void addToBothSidesOfChildren(er.bugtracker.Component object) { | public void addToBothSidesOfChildren(Component object) { | public void addToBothSidesOfChildren(er.bugtracker.Component object) { addObjectToBothSidesOfRelationshipWithKey(object, "children"); } |
public void addToBothSidesOfOwner(er.bugtracker.People object) { | public void addToBothSidesOfOwner(People object) { | public void addToBothSidesOfOwner(er.bugtracker.People object) { addObjectToBothSidesOfRelationshipWithKey(object, "owner"); } |
public void addToBothSidesOfParent(er.bugtracker.Component object) { | public void addToBothSidesOfParent(Component object) { | public void addToBothSidesOfParent(er.bugtracker.Component object) { addObjectToBothSidesOfRelationshipWithKey(object, "parent"); } |
public void addToBugs(er.bugtracker.Bug object) { | public void addToBugs(Bug object) { | public void addToBugs(er.bugtracker.Bug object) { NSMutableArray array = (NSMutableArray)bugs(); willChange(); array.addObject(object); } |
public void addToChildren(er.bugtracker.Component object) { | public void addToChildren(Component object) { | public void addToChildren(er.bugtracker.Component object) { NSMutableArray array = (NSMutableArray)children(); willChange(); array.addObject(object); } |
public er.bugtracker.People owner() { return (er.bugtracker.People)storedValueForKey("owner"); | public People owner() { return (People)storedValueForKey("owner"); | public er.bugtracker.People owner() { return (er.bugtracker.People)storedValueForKey("owner"); } |
public er.bugtracker.Component parent() { return (er.bugtracker.Component)storedValueForKey("parent"); | public Component parent() { return (Component)storedValueForKey("parent"); | public er.bugtracker.Component parent() { return (er.bugtracker.Component)storedValueForKey("parent"); } |
public void removeFromBothSidesOfBugs(er.bugtracker.Bug object) { | public void removeFromBothSidesOfBugs(Bug object) { | public void removeFromBothSidesOfBugs(er.bugtracker.Bug object) { removeObjectFromBothSidesOfRelationshipWithKey(object, "bugs"); } |
public void removeFromBothSidesOfChildren(er.bugtracker.Component object) { | public void removeFromBothSidesOfChildren(Component object) { | public void removeFromBothSidesOfChildren(er.bugtracker.Component object) { removeObjectFromBothSidesOfRelationshipWithKey(object, "children"); } |
public void removeFromBothSidesOfOwner(er.bugtracker.People object) { | public void removeFromBothSidesOfOwner(People object) { | public void removeFromBothSidesOfOwner(er.bugtracker.People object) { removeObjectFromBothSidesOfRelationshipWithKey(object, "owner"); } |
public void removeFromBothSidesOfParent(er.bugtracker.Component object) { | public void removeFromBothSidesOfParent(Component object) { | public void removeFromBothSidesOfParent(er.bugtracker.Component object) { removeObjectFromBothSidesOfRelationshipWithKey(object, "parent"); } |
public void removeFromBugs(er.bugtracker.Bug object) { | public void removeFromBugs(Bug object) { | public void removeFromBugs(er.bugtracker.Bug object) { NSMutableArray array = (NSMutableArray)bugs(); willChange(); array.removeObject(object); } |
public void removeFromChildren(er.bugtracker.Component object) { | public void removeFromChildren(Component object) { | public void removeFromChildren(er.bugtracker.Component object) { NSMutableArray array = (NSMutableArray)children(); willChange(); array.removeObject(object); } |
public void setOwner(er.bugtracker.People aValue) { | public void setOwner(People aValue) { | public void setOwner(er.bugtracker.People aValue) { takeStoredValueForKey(aValue, "owner"); } |
public void setParent(er.bugtracker.Component aValue) { | public void setParent(Component aValue) { | public void setParent(er.bugtracker.Component aValue) { takeStoredValueForKey(aValue, "parent"); } |
if (impl == null) throw new NullPointerException("impl may not be null"); | ServerSocket (SocketImpl impl) throws IOException { this.impl = impl; this.impl.create (true); } | |
Socket s = new Socket(); implAccept (s); return s; | Socket socket = new Socket(); implAccept (socket); return socket; | public Socket accept () throws IOException { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; } |
impl.close (); | if (!isClosed()) { impl.close(); | public void close () throws IOException { impl.close (); if (getChannel() != null) getChannel().close (); closed = true; } |
closed = true; | impl = null; } | public void close () throws IOException { impl.close (); if (getChannel() != null) getChannel().close (); closed = true; } |
InetAddress addr = getInetAddress(); if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null; | if (!isBound()) return null; return new InetSocketAddress(getInetAddress(), getLocalPort()); | public SocketAddress getLocalSocketAddress() { InetAddress addr = getInetAddress(); if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null; } |
if (isClosed()) throw new SocketException("ServerSocket is closed"); | public int getReceiveBufferSize () throws SocketException { Object buf = impl.getOption (SocketOptions.SO_RCVBUF); if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type"); return ((Integer) buf).intValue (); } | |
if (isClosed()) throw new SocketException("ServerSocket is closed"); | public boolean getReuseAddress() throws SocketException { Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); return ((Boolean) reuseaddr).booleanValue (); } | |
if (isClosed()) throw new SocketException("ServerSocket is closed"); | public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); } | |
protected final void implAccept (Socket s) | protected final void implAccept (Socket socket) | protected final void implAccept (Socket s) throws IOException { if (getChannel() != null && !getChannel().isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); } |
impl.accept(s.impl); | impl.accept(socket.getImpl()); | protected final void implAccept (Socket s) throws IOException { if (getChannel() != null && !getChannel().isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); } |
if (isClosed()) throw new SocketException("ServerSocket is closed"); | public void setReceiveBufferSize (int size) throws SocketException { if (size <= 0) throw new IllegalArgumentException ("SO_RCVBUF value must be > 0"); impl.setOption (SocketOptions.SO_RCVBUF, new Integer (size)); } | |
if (isClosed()) throw new SocketException("ServerSocket is closed"); | public void setReuseAddress (boolean on) throws SocketException { impl.setOption (SocketOptions.SO_REUSEADDR, new Boolean (on)); } | |
return "ServerSocket" + impl.toString(); | if (!isBound()) return "ServerSocket[unbound]"; return ("ServerSocket[addr=" + impl.getInetAddress() + ",port=" + impl.getPort() + ",localport=" + impl.getLocalPort() + "]"); | public String toString () { return "ServerSocket" + impl.toString(); } |
public CharViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) | CharViewBufferImpl (ByteBuffer bb, int capacity) | public CharViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 1, limit >> 1, position >> 1, mark >> 1); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
super (limit >> 1, limit >> 1, position >> 1, mark >> 1); | super (capacity, capacity, 0, -1); | public CharViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 1, limit >> 1, position >> 1, mark >> 1); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
this.offset = offset; this.readOnly = readOnly; this.endian = endian; | this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); | public CharViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 1, limit >> 1, position >> 1, mark >> 1); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
public DoubleViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) | DoubleViewBufferImpl (ByteBuffer bb, int capacity) | public DoubleViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 3, limit >> 3, position >> 3, mark >> 3); this.bb = bb; this.offset = offset; this.rea... |
super (limit >> 3, limit >> 3, position >> 3, mark >> 3); | super (capacity, capacity, 0, -1); | public DoubleViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 3, limit >> 3, position >> 3, mark >> 3); this.bb = bb; this.offset = offset; this.rea... |
this.offset = offset; this.readOnly = readOnly; this.endian = endian; | this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); | public DoubleViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 3, limit >> 3, position >> 3, mark >> 3); this.bb = bb; this.offset = offset; this.rea... |
public FloatViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) | FloatViewBufferImpl (ByteBuffer bb, int capacity) | public FloatViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 2, limit >> 2, position >> 2, mark >> 2); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
super (limit >> 2, limit >> 2, position >> 2, mark >> 2); | super (capacity, capacity, 0, -1); | public FloatViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 2, limit >> 2, position >> 2, mark >> 2); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
this.offset = offset; this.readOnly = readOnly; this.endian = endian; | this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); | public FloatViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 2, limit >> 2, position >> 2, mark >> 2); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
public IntViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) | IntViewBufferImpl (ByteBuffer bb, int capacity) | public IntViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 2, limit >> 2, position >> 2, mark >> 2); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
super (limit >> 2, limit >> 2, position >> 2, mark >> 2); | super (capacity, capacity, 0, -1); | public IntViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 2, limit >> 2, position >> 2, mark >> 2); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
this.offset = offset; this.readOnly = readOnly; this.endian = endian; | this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); | public IntViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 2, limit >> 2, position >> 2, mark >> 2); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) | LongViewBufferImpl (ByteBuffer bb, int capacity) | public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 3, limit >> 3, position >> 3, mark >> 3); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
super (limit >> 3, limit >> 3, position >> 3, mark >> 3); | super (capacity, capacity, 0, -1); | public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 3, limit >> 3, position >> 3, mark >> 3); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
this.offset = offset; this.readOnly = readOnly; this.endian = endian; | this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); | public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 3, limit >> 3, position >> 3, mark >> 3); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
public ShortViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) | ShortViewBufferImpl (ByteBuffer bb, int capacity) | public ShortViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 1, limit >> 1, position >> 1, mark >> 1); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
super (limit >> 1, limit >> 1, position >> 1, mark >> 1); | super (capacity, capacity, 0, -1); | public ShortViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 1, limit >> 1, position >> 1, mark >> 1); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
this.offset = offset; this.readOnly = readOnly; this.endian = endian; | this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); | public ShortViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly, ByteOrder endian) { super (limit >> 1, limit >> 1, position >> 1, mark >> 1); this.bb = bb; this.offset = offset; this.readOnly = readOnly; this.endian = endian; } |
public void setTarget(ClassVisitor cv) { if (useHook) { this.raw = cv; this.cv = new ClassVisitorTee(rec = new ClassEmitter(new ClassRecorder(), false), cv); } else { this.raw = cv; this.cv = cv; } | public void setTarget(ClassVisitor cv, ClassVisitor outer) { this.cv = cv; this.outer = outer; | public void setTarget(ClassVisitor cv) { if (useHook) { this.raw = cv; this.cv = new ClassVisitorTee(rec = new ClassEmitter(new ClassRecorder(), false), cv); } else { this.raw = cv; this.cv = cv; } fieldInfo = new HashMap(); seenStatic =... |
ended = false; | public void setTarget(ClassVisitor cv) { if (useHook) { this.raw = cv; this.cv = new ClassVisitorTee(rec = new ClassEmitter(new ClassRecorder(), false), cv); } else { this.raw = cv; this.cv = cv; } fieldInfo = new HashMap(); seenStatic =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.