Examples of dataInStream()


Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.VM_TOP_LEVEL_THREAD_GROUPS);
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int nrGroups = readInt("nr of groups", replyData); //$NON-NLS-1$
      ArrayList<ThreadGroupReference> result = new ArrayList<ThreadGroupReference>(nrGroups);
      for (int i = 0; i < nrGroups; i++) {
        ThreadGroupReferenceImpl threadGroup = ThreadGroupReferenceImpl.read(this, replyData);
        result.add(threadGroup);
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

    mirror.initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = mirror
          .requestVM(JdwpCommandPacket.VM_ID_SIZES);
      mirror.defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();

      fFieldIDSize = mirror.readInt("field ID size", replyData); //$NON-NLS-1$
      fMethodIDSize = mirror.readInt("method ID size", replyData); //$NON-NLS-1$
      fObjectIDSize = mirror.readInt("object ID size", replyData); //$NON-NLS-1$
      fReferenceTypeIDSize = mirror.readInt("refType ID size", replyData); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.VM_VERSION);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();

      fVersionDescription = readString("version descr.", replyData); //$NON-NLS-1$
      fJdwpMajorVersion = readInt("major version", replyData); //$NON-NLS-1$
      fJdwpMinorVersion = readInt("minor version", replyData); //$NON-NLS-1$
      fVMVersion = readString("version", replyData); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

    if (isHCRSupported()) {
      initJdwpRequest();
      try {
        JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.HCR_CAPABILITIES);
        defaultReplyErrorHandler(replyPacket.errorCode());
        DataInputStream replyData = replyPacket.dataInStream();

        fHcrCapabilities[HCR_CAN_RELOAD_CLASSES] = readBoolean(
            "reload classes", replyData); //$NON-NLS-1$
        fHcrCapabilities[HCR_CAN_GET_CLASS_VERSION] = readBoolean(
            "get class version", replyData); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

      }

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.HCR_CLASSES_HAVE_CHANGED, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();

      byte resultFlag = readByte("result", resultHCRMap(), replyData); //$NON-NLS-1$
      switch (resultFlag) {
      case HCR_RELOAD_SUCCESS:
        return RELOAD_SUCCESS;
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int counts = readInt("counts", replyData); //$NON-NLS-1$
      if (counts != size) {
        throw new InternalError(JDIMessages.VirtualMachineImpl_3);
      }
      long[] ret = new long[counts];
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.CLR_VISIBLE_CLASSES, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      List<ReferenceType> elements = new ArrayList<ReferenceType>(nrOfElements);
      for (int i = 0; i < nrOfElements; i++) {
        ReferenceTypeImpl elt = ReferenceTypeImpl.readWithTypeTag(this, replyData);
        if (elt == null)
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

        throw new IncompatibleThreadStateException();
      }

      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      MonitorInfo result = new MonitorInfo();
      result.owner = ThreadReferenceImpl.read(this, replyData);
      result.entryCount = readInt("entry count", replyData); //$NON-NLS-1$
      int nrOfWaiters = readInt("nr of waiters", replyData); //$NON-NLS-1$
      result.waiters = new ArrayList<ThreadReference>(nrOfWaiters);
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int elements = readInt("elements", replyData); //$NON-NLS-1$
      if (max > 0 && elements > max) {
        elements = max;
      }
      ArrayList<Value> list = new ArrayList<Value>();
View Full Code Here

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_GET_VALUES, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      if (nrOfElements != nonStaticFieldsSize)
        throw new InternalError(
            JDIMessages.ObjectReferenceImpl_Retrieved_a_different_number_of_values_from_the_VM_than_requested_1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.