Package de.desy.tine.exceptions

Examples of de.desy.tine.exceptions.InputDataLockedException


    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

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

  {
    if (hDataObject == null)
    { // doesn't make sense (a primitive was passed as write data ?)
      return 0;
    }
    if (isLocked) throw new InputDataLockedException(lockedMessage);
    repackageDataForOutput();
    return 0;
  }
View Full Code Here

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

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

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

  public int putData(INTINT[] 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_INTINT:
        for (int i = 0; i < dArrayLength; i++)
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.