Package de.desy.tine.exceptions

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


  {
    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

   */
  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

    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

  {
    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

   *
   */
  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

  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

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.