Package de.desy.tine.exceptions

Examples of de.desy.tine.exceptions.InputDataLockedException


    return -1;
  }
  private int putDataValue(Object d, int offset)
  {
    if (offset < 0) return TErrorList.argument_list_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    if (dArrayLength < offset) return TErrorList.dimension_error;
    switch (dFormat)
    {
      case TFormat.CF_DOUBLE:
        ((double[]) hDataObject)[offset] = getDoubleValue(d);
View Full Code Here


  public int putData(long[] 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

  public int putData(DBLDBLDBL[] 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_FLTINTINT:
        for (int i = 0; i < dArrayLength; i++)
View Full Code Here

    if (data == null || length <= 0 || offset < 0) return TErrorList.argument_list_error;
    if (length > data.length - offset) length = data.length - offset;
    int maxlen = dArrayLength;
    if (maxlen > length) maxlen = length;
    if (length <= 0) return TErrorList.argument_list_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    if (TFormat.isVariableLengthString(dFormat))
    { // String array to CF_STRING, etc.
      if (hDataObject instanceof String[])
      {
        for (int i = 0; i < maxlen; i++)
View Full Code Here

    if (length > data.length - offset) length = data.length - offset;
    int maxlen = dArrayLength;
    if (maxlen > length) maxlen = length;
    if (length <= 0) return TErrorList.argument_list_error;
    if (!TFormat.isVariableLengthString(dFormat)) return TErrorList.illegal_format;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    if (hDataObject instanceof KEYVALUE[])
    {
      for (int i = 0; i < maxlen; i++)
        ((KEYVALUE[]) hDataObject)[i] = data[i + offset];
    }
View Full Code Here

  public int putData(String value, int offset)
  {
    if (offset < 0) return TErrorList.argument_list_error;
    if (dFormat != TFormat.CF_STRING) return TErrorList.illegal_format;
    if (dArrayLength < offset) return TErrorList.dimension_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    ((String[]) hDataObject)[offset] = value;
    dSizeInBytes = 0;
    String s = null;
    for (int i = 0; i < dArrayLength; i++)
    { // first see how much string space we need (going out)
View Full Code Here

  public int putData(KEYVALUE value, int offset)
  {
    if (offset < 0) return TErrorList.argument_list_error;
    if (dFormat != TFormat.CF_KEYVALUE) return TErrorList.illegal_format;
    if (dArrayLength < offset) return TErrorList.dimension_error;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    ((KEYVALUE[]) hDataObject)[offset] = value;
    dSizeInBytes = 0;
    KEYVALUE s = null;
    for (int i = 0; i < dArrayLength; i++)
    { // first see how much string space we need (going out)
View Full Code Here

    int len = 0;
    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 (isLocked) throw new InputDataLockedException(lockedMessage);
    dSizeInBytes = 0;
    for (int i = 0; i < len; i++)
    {
      dSizeInBytes += ASPECTRUM.hdrSizeInBytes + 8 + data[i+offset].length * 4;
      ((ASPECTRUM[]) hDataObject)[i] = data[i + offset];
View Full Code Here

    {
      if (TLinkFactory.debugLevel > 0) DbgLog.log("TDataType.putData","attempt to assign string to null data object");
      return 0;
    }
    int len = data.length();
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    switch (dFormat)
    {
      case TFormat.CF_NAME8:
        ((NAME8[]) hDataObject)[0] = new NAME8(data);
        break;
View Full Code Here

      data.fixExtendedBytes();
      xsiz += data.getExtendedSizeInBytes();
    }
    byte[] dbytes = data.toByteArray();
    if (dbytes == null) return TErrorList.code_failure;
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    if (((byte[])hDataObject).length < dsiz + xsiz)
      hDataObject = new byte[dsiz + xsiz];
    System.arraycopy(dbytes, 0, (byte[]) hDataObject, 0, dsiz);
    if (xsiz > 0)
    {
View Full Code Here

TOP

Related Classes of de.desy.tine.exceptions.InputDataLockedException

Copyright © 2018 www.massapicom. 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.