Examples of InputDataLockedException


Examples of de.desy.tine.exceptions.InputDataLockedException

      return 0;
    }
    if (dFormat != TFormat.CF_STRUCT) return TErrorList.illegal_format;
    if (dTag.compareTo(data[0].getName()) != 0) return TErrorList.invalid_structure_tag;
    if (hDataObject == null) return TErrorList.invalid_data;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    int xsiz = 0;
   
    int dsiz = data[0].getSizeInBytes();
    int asiz = getArrayLength();
    if (asiz > length) asiz = length;
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

    }
    hDataObject = data;
    dArrayLength = totlen;
    byte[] dbytes = data.toByteArray();
    if (dbytes == null) return TErrorList.code_failure;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
   
    repackageDataForOutput();
    return 0;
  }
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

  public int putData(byte[] data, int length, int offset)
  {
    if (data == null || length <= 0 || offset < 0) return TErrorList.argument_list_error;
    if (length > data.length - offset) length = data.length - offset;
    if (length <= 0) return TErrorList.argument_list_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    if (dArrayLength > length) dArrayLength = length;
    switch (dFormat)
    {
      case TFormat.CF_TEXT:
        if (hDataObject instanceof char[])
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

  {
    return putDataSegment(values, offset);
  }
  public int putData(byte[] data, String tag)
  {
    if (data != null && isLocked) throw new InputDataLockedException(lockedMessage);
    if (hDataObject != null)
    {
      if (tag != null && TStructRegistry.getSizeInBytes(tag,dTagKey) < 1) return TErrorList.invalid_structure_tag;
      if (data.length < dArrayLength) dArrayLength = data.length;
      System.arraycopy(data, 0, (byte[]) hDataObject, 0, dArrayLength);
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

   */
  public int putData(IMAGE data)
  {
    if (data == null) return TErrorList.argument_list_error;
    if (dFormat != TFormat.CF_IMAGE) return TErrorList.illegal_format;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    setObjectHandle(data);
    int cc = 0;
    int dsize = data.getHeaderSize() + data.getFrameHeader().appendedFrameSize;
    if (dsize < 0 || dsize > data.getHeaderSize() + data.getImageFrameSize())
    {
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

    try { len = Integer.parseInt(dTag); } catch (Exception ignore) {};
    if (len == 0) len = dArrayLength;
    if (len > length) len = length;
    if (length <= 0) return TErrorList.argument_list_error;
    if (dFormat != TFormat.CF_AIMAGE) return TErrorList.illegal_format;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    dSizeInBytes = 0;
    int totalHdrBytes = 0, totalFrameBytes = 0;
    for (int i=0; i<len; i++)
    {
      if (((IMAGE[])data)[i+offset] == null) ((IMAGE[])data)[i+offset] = new IMAGE(100);
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

  {
    if (data == null || length <= 0 || offset < 0) return TErrorList.argument_list_error;
    if (length > data.length - offset) length = data.length - offset;
    int maxlen = Math.min(dArrayLength, length);
    if (length <= 0) return TErrorList.argument_list_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    boolean formatsEqual = dFormat == getObjectFormat(data);
    if ((data instanceof NAME[] && hDataObject instanceof NAME[])
        || (data instanceof NAMEINT[] && hDataObject instanceof NAMEINT[]))
    {
      int objlen = ((TCompoundDataObject[]) hDataObject).length;
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

   *
   */
  public int putData(TCompoundDataObject value, int offset)
  {
    if (offset < 0) return TErrorList.argument_list_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    if (dArrayLength < offset) return TErrorList.dimension_error;
    TCompoundDataObject[] d = new TCompoundDataObject[1];
    d[0] = value;
    short sFormat = getObjectFormat(d);
    boolean formatsEqual = dFormat == sFormat;
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

  public int putData(double[] data, int length, int offset)
  {
    if (data == null || length <= 0 || offset < 0) return TErrorList.argument_list_error;
    if (length > data.length - offset) length = data.length - offset;
    if (length <= 0) return TErrorList.argument_list_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    if (dArrayLength > length) dArrayLength = length;
    switch (dFormat)
    {
      case TFormat.CF_DOUBLE:
        for (int i = 0; i < dArrayLength; i++)
View Full Code Here

Examples of de.desy.tine.exceptions.InputDataLockedException

    throw new TineRuntimeErrorException(TErrorList.illegal_format);
  }
  private int putDataSegment(Object values, int offset)
  {
    if (values == null || offset < 0) return TErrorList.argument_list_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    if (dArrayLength < offset) return TErrorList.dimension_error;
    if (!values.getClass().isArray()) return TErrorList.not_supported;
    int vlen = Array.getLength(values);
    if (vlen > dArrayLength - offset) vlen = dArrayLength - offset;
    switch (dFormat)
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.