Examples of readBytes()


Examples of com.google.code.or.io.XInputStream.readBytes()

  protected XInputStream open(String path) throws Exception {
    //
    final XInputStream is = new XInputStreamImpl(new RamdomAccessFileInputStream(new File(path)));
    try {
      // Check binlog magic
      final byte[] magic = is.readBytes(MySQLConstants.BINLOG_MAGIC.length);
      if(!CodecUtils.equals(magic, MySQLConstants.BINLOG_MAGIC)) {
        throw new NestableRuntimeException("invalid binlog magic, file: " + path);
      }
     
      //
View Full Code Here

Examples of com.google.code.or.io.impl.XInputStreamImpl.readBytes()

  protected XInputStream open(String path) throws Exception {
    //
    final XInputStream is = new XInputStreamImpl(new RamdomAccessFileInputStream(new File(path)));
    try {
      // Check binlog magic
      final byte[] magic = is.readBytes(MySQLConstants.BINLOG_MAGIC.length);
      if(!CodecUtils.equals(magic, MySQLConstants.BINLOG_MAGIC)) {
        throw new NestableRuntimeException("invalid binlog magic, file: " + path);
      }
     
      //
View Full Code Here

Examples of com.google.code.or.io.util.XDeserializer.readBytes()

        metadata[i] = d.readInt(2); // Little-endian
              break;
      case MySQLConstants.TYPE_SET:
            case MySQLConstants.TYPE_ENUM:
            case MySQLConstants.TYPE_STRING:
              metadata[i] = CodecUtils.toInt(d.readBytes(2), 0, 2); // Big-endian
              break;
            default:
              metadata[i] = 0;
      }
    }
View Full Code Here

Examples of com.google.protobuf.CodedInputStream.readBytes()

               break;
            case wrappedEnum << 3 | WireFormat.WIRETYPE_VARINT:
               enumValue = in.readEnum();
               break;
            case wrappedMessageBytes << 3 | WireFormat.WIRETYPE_LENGTH_DELIMITED:
               messageBytes = in.readBytes().toByteArray();
               break;
            case wrappedString << 3 | WireFormat.WIRETYPE_LENGTH_DELIMITED:
               value = in.readString();
               break;
            case wrappedBytes << 3 | WireFormat.WIRETYPE_LENGTH_DELIMITED:
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.readBytes()

          beginResponse(network);

          if (network.readByte() == 0)
            return new OStorageOperationResult<ORawBuffer>(null);

          final ORawBuffer buffer = new ORawBuffer(network.readBytes(), network.readVersion(), network.readByte());

          final ODatabaseRecord database = ODatabaseRecordThreadLocal.INSTANCE.getIfDefined();
          ORecord record;
          while (network.readByte() == 2) {
            record = (ORecord) OChannelBinaryProtocol.readIdentifiable(network);
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryClient.readBytes()

          beginResponse(network);

          if (network.readByte() == 0)
            return null;

          final ORawBuffer buffer = new ORawBuffer(network.readBytes(), network.readInt(), network.readByte());

          ORecordInternal<?> record;
          while (network.readByte() == 2) {
            record = (ORecordInternal<?>) readIdentifiable(network, iDatabase);
View Full Code Here

Examples of com.sun.faban.harness.agent.FileService.readBytes()

        try {
            srcfilep = srcf.open(srcfile, FileAgent.READ);

            // Now loop, reading from src and writing to dest
            while (true) {
                buf = srcfilep.readBytes(1000000);
                //  logger.info("           Read " + buf);
                //  logger.info(buf);
                //    logger.info(buf.length);
                stream.write(buf);
                if (buf.length < 1000000) {
View Full Code Here

Examples of com.sun.midp.io.j2me.storage.RandomAccessStream.readBytes()

        RandomAccessStream stream = new RandomAccessStream(token);

        try {
            stream.connect(resourceFilename, Connector.READ);
            resourceBuffer = new byte[stream.getSizeOf()];
            stream.readBytes(resourceBuffer, 0, resourceBuffer.length);
        } catch (java.io.IOException e) {
            resourceBuffer = null;
        } finally {
            try {
                stream.disconnect();
View Full Code Here

Examples of com.sun.star.io.XInputStream.readBytes()

                xSeek.seek(0);
                xSeek = null;
                //read all bytes
                XInputStream xInput = m_RootStream.getInputStream();
                byte oledata[][] = new byte[1][oleLength];
                xInput.readBytes(oledata, oleLength);
                //return the base64 encoded string
                return Base64.encodeBytes(oledata[0]);
            } catch (Exception ex) {
                ex.printStackTrace();
            }
View Full Code Here

Examples of com.sun.star.io.XSeekableInputStream.readBytes()

                    XSeekableInputStream.class, oSequenceInputStream );
            m_aTestHelper.Message ( "SequenceInputStream created." );
           
            //read from the stream
            byte pBytesRead[][] = new byte [1][nBytesCnt];
            xSeekableInStream.readBytes ( pBytesRead, pBytesRead[0].length + 1 );
            m_aTestHelper.Message ( "Read from SequenceInputStream." );
           
            //close the streams
            xSeqOutStream.closeOutput ();
            xSeekableInStream.closeInput ();
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.