Examples of CorruptDataImpl


Examples of org.apache.kato.hprof.image.CorruptDataImpl

   * This method may even be removed.
   */
  @Override
  public Object getTraceBuffer(String bufferName, boolean formatted)
      throws CorruptDataException {
    throw new CorruptDataException(new CorruptDataImpl("There are no trace buffers"));
  }
View Full Code Here

Examples of org.apache.kato.hprof.image.CorruptDataImpl

    public Object next() {
      Long ID = iterator.next();
      JavaClassImpl clazz = heap.getJavaClassByID(ID);

      if (clazz == null) {
        return new CorruptDataImpl(heap.getImagePointer(ID), "Can't match class object ID to a JavaClassImpl.");
      }
     
      return clazz;
    }
View Full Code Here

Examples of org.apache.kato.hprof.image.CorruptDataImpl

        array[dstStart+i] =  record.getDoubleElement(srcStart+i);
      }
      break;
    }
    default:
      throw new CorruptDataException(new CorruptDataImpl("Primitive array has invalid type of "+record.getElementType()));
    }
  }
View Full Code Here

Examples of org.apache.kato.hprof.image.CorruptDataImpl

      case BasicType.INT:
        return "I";
      case BasicType.LONG:
        return "J";
      default:
        throw new CorruptDataException(new CorruptDataImpl("Unexpected basic type of " + field.getType()+
            "encountered."));
      }
    }
View Full Code Here

Examples of org.apache.kato.hprof.image.CorruptDataImpl

        }
       
      }

      if (valueSet == false || offsetSet == false || countSet == false ) {
        throw new CorruptDataException(new CorruptDataImpl("Unable to find all String classes fields values"));
      }
      char characters[] = new char[count];
     
      value.arraycopy(offset, characters, 0, count);
     
View Full Code Here

Examples of org.apache.kato.hprof.image.CorruptDataImpl

      case BasicType.DOUBLE:
        return new Double(instance.getDoubleField(offset));
      case BasicType.OBJECT:
        return JavaClassImpl.this.heap.getObjectByID(instance.getIDField(offset));
      default:
        throw new CorruptDataException(new CorruptDataImpl("Invalid field type "
            +field.getType()));
      }
    }
View Full Code Here

Examples of org.apache.kato.hprof.image.CorruptDataImpl

      case BasicType.INT:
        return new Integer(field.getIntegerField());
      case BasicType.LONG:
        return new Long(field.getLongField());
      default:
        throw new CorruptDataException(new CorruptDataImpl("Unexpected basic type of " + field.getType()+
            "encountered."));   
      }
    }
View Full Code Here

Examples of org.apache.kato.jvmti.process.CorruptDataImpl

        break;
      }
    }
   
    if (valueField == null ||  countField == null || offsetField == null) {
      throw new CorruptDataException(new CorruptDataImpl("Unable to find relevant string fields"));
    }

   
    Character[] stringField = (Character[])((JObject)valueField.get(stringObj)).getObjArray();
    int offset = offsetField.getInt(stringObj);
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.