Package de.desy.tine.exceptions

Examples of de.desy.tine.exceptions.InputDataLockedException


  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

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

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.