Package org.apache.derby.iapi.util

Examples of org.apache.derby.iapi.util.ByteArray


    super.readExternal(in);
    operation = in.readByte();

    if (operation == CREATE && hasCreateByteArray)
    {
      createByteArray = new ByteArray();
      createByteArray.readExternal(in);
    }
  }
View Full Code Here


    {
      throw StandardException.newException(
                SQLState.DATA_UNEXPECTED_EXCEPTION, ioe);
    }

    return new ByteArray(array);
  }
View Full Code Here

    }

    // set the position to the beginning of the buffer
    logBuffer.setPosition(optionalDataStart);

    this.preparedLog = new ByteArray(logBuffer.getByteArray(), optionalDataStart,
      optionalDataLength);
  }
View Full Code Here

  public GeneratedClass getGeneratedClass(ByteArray savedBytes) throws StandardException {
    if (gc != null) return gc;

    if (savedBytes != null)
    {
      ByteArray classBytecode = cb.getClassBytecode();

      // note: be sure to set the length since
      // the class builder allocates the byte array
      // in big chunks
      savedBytes.setBytes(classBytecode.getArray());
      savedBytes.setLength(classBytecode.getLength());
    }

      gc =  cb.getGeneratedClass();

    return gc; // !! yippee !! here it is...
View Full Code Here

                // column is long.

        if (!(column instanceof InputStream))
                {
          // Convert already written object to an InputStream.
          ByteArray fieldData =
            new ByteArray(
                            ((DynamicByteArrayOutputStream)out).getByteArray(),
              (columnBeginPosition), fieldDataLength);

          ByteArrayInputStream columnIn =
            new ByteArrayInputStream(
                            fieldData.getArray(), columnBeginPosition,
                            fieldDataLength);

          MemByteHolder byteHolder =
                        new MemByteHolder(fieldDataLength + 1);
View Full Code Here

    {
      throw StandardException.newException(
                SQLState.DATA_UNEXPECTED_EXCEPTION, ioe);
    }

    return new ByteArray(array);
  }
View Full Code Here

    }

    // set the position to the beginning of the buffer
    logBuffer.setPosition(optionalDataStart);

    this.preparedLog = new ByteArray(logBuffer.getByteArray(), optionalDataStart,
      optionalDataLength);
  }
View Full Code Here

    }

    // set the position to the beginning of the buffer
    logBuffer.setPosition(optionalDataStart);

    this.preparedLog = new ByteArray(logBuffer.getByteArray(), optionalDataStart,
      optionalDataLength);
  }
View Full Code Here

    int optionalDataLength = logBuffer.getPosition() - optionalDataStart;

    // set the position to the beginning of the buffer
    logBuffer.setPosition(optionalDataStart);

    this.preparedLog = new ByteArray(
            logBuffer.getByteArray(), optionalDataStart, optionalDataLength);
  }
View Full Code Here

    }

    int optionalDataStart = localLogBuffer.getBeginPosition();
    int optionalDataLength = localLogBuffer.getPosition() - optionalDataStart;

    this.preparedLog = new ByteArray (localLogBuffer.getByteArray(), optionalDataStart,
      optionalDataLength);
  }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.util.ByteArray

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.