Examples of InputDataLockedException


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

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

Examples of de.desy.tine.exceptions.InputDataLockedException

  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

Examples of de.desy.tine.exceptions.InputDataLockedException

  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

Examples of de.desy.tine.exceptions.InputDataLockedException

  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

Examples of de.desy.tine.exceptions.InputDataLockedException

  {
    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

Examples of de.desy.tine.exceptions.InputDataLockedException

  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
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.