16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
18 |
along with GNU Classpath; see the file COPYING. If not, write to the |
along with GNU Classpath; see the file COPYING. If not, write to the |
19 |
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
20 |
02111-1307 USA. |
02110-1301 USA. |
21 |
|
|
22 |
Linking this library statically or dynamically with other modules is |
Linking this library statically or dynamically with other modules is |
23 |
making a combined work based on this library. Thus, the terms and |
making a combined work based on this library. Thus, the terms and |
40 |
|
|
41 |
package gnu.classpath.jdwp.processor; |
package gnu.classpath.jdwp.processor; |
42 |
|
|
|
import gnu.classpath.jdwp.Jdwp; |
|
43 |
import gnu.classpath.jdwp.JdwpConstants; |
import gnu.classpath.jdwp.JdwpConstants; |
44 |
import gnu.classpath.jdwp.exception.JdwpException; |
import gnu.classpath.jdwp.exception.JdwpException; |
45 |
import gnu.classpath.jdwp.exception.JdwpInternalErrorException; |
import gnu.classpath.jdwp.exception.JdwpInternalErrorException; |
56 |
* |
* |
57 |
* @author Aaron Luchko <aluchko@redhat.com> |
* @author Aaron Luchko <aluchko@redhat.com> |
58 |
*/ |
*/ |
59 |
public class StringReferenceCommandSet implements CommandSet |
public class StringReferenceCommandSet |
60 |
|
extends CommandSet |
61 |
{ |
{ |
62 |
|
|
63 |
public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command) |
public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command) |
90 |
private void executeValue(ByteBuffer bb, DataOutputStream os) |
private void executeValue(ByteBuffer bb, DataOutputStream os) |
91 |
throws JdwpException, IOException |
throws JdwpException, IOException |
92 |
{ |
{ |
93 |
ObjectId oid = Jdwp.getIdManager().readId(bb); |
ObjectId oid = idMan.readObjectId(bb); |
94 |
|
|
95 |
String str = (String) oid.getObject(); |
String str = (String) oid.getObject(); |
96 |
JdwpString.writeString(os, str); |
JdwpString.writeString(os, str); |