Examples of readString()


Examples of com.trilead.ssh2.packets.TypesReader.readString()

  public void msgChannelOpen(byte[] msg, int msglen) throws IOException
  {
    TypesReader tr = new TypesReader(msg, 0, msglen);

    tr.readByte(); // skip packet type
    String channelType = tr.readString();
    int remoteID = tr.readUINT32(); /* sender channel */
    int remoteWindow = tr.readUINT32(); /* initial window size */
    int remoteMaxPacketSize = tr.readUINT32(); /* maximum packet size */

    if ("x11".equals(channelType))
View Full Code Here

Examples of csm.uttils.Archive.readString()

        properties.put(propertyKey, propertyValue);
    }

    static void loadProperties(String path) {
        csm.uttils.Archive propFile = new Archive(path);
        String propString = propFile.readString();
        Logger.getLogger(ConfigurationManager.class.getName()).debug("File: "
                + propFile.getFile().exists());

        Logger.getLogger(ConfigurationManager.class.getName()).debug("File Path: "
                + propFile.getFile().getAbsolutePath());
View Full Code Here

Examples of davaguine.jmac.tools.ByteArrayReader.readString()

    public final static ID3Tag read(final File file) throws IOException {
        file.seek(file.length() - ID3_TAG_BYTES);
        try {
            final ID3Tag tag = new ID3Tag();
            final ByteArrayReader reader = new ByteArrayReader(file, ID3_TAG_BYTES);
            tag.Header = reader.readString(3, "US-ASCII");
            tag.Title = reader.readString(30, "US-ASCII");
            tag.Artist = reader.readString(30, "US-ASCII");
            tag.Album = reader.readString(30, "US-ASCII");
            tag.Year = reader.readString(4, "US-ASCII");
            tag.Comment = reader.readString(29, "US-ASCII");
View Full Code Here

Examples of hprose.io.HproseReader.readString()

                        bytestream.write(HproseTags.TagError);
                        hproseReader.readRaw(bytestream);
                    }
                    else {
                        hproseReader.reset();
                        result = new HproseException((String) hproseReader.readString());
                    }
                    break;
            }
        }
        if (resultMode == HproseResultMode.RawWithEndTag || resultMode == HproseResultMode.Raw) {
View Full Code Here

Examples of htsjdk.tribble.util.LittleEndianInputStream.readString()

        try {
            ss = IGVSeekableStreamFactory.getInstance().getStreamFor(path);
            LittleEndianInputStream is = new LittleEndianInputStream(new BufferedInputStream(ss));

            long indexPosition = is.readLong();
            trackLine = is.readString();
            nTimePoints = is.readInt();
            times = new int[nTimePoints];
            for (int t = 0; t < nTimePoints; t++) {
                times[t] = is.readInt();
            }
View Full Code Here

Examples of javax.jms.StreamMessage.readString()

         ObjectMessage om2 = (ObjectMessage)theConsumer.receive(1500);
         assertEquals("aardvark", (String)om2.getObject());

         StreamMessage sm2 = (StreamMessage)theConsumer.receive(1500);
         assertEquals("aardvark", sm2.readString());
      }
      finally
      {
         if (theConn != null)
         {
View Full Code Here

Examples of javax.sql.rowset.serial.SQLInputImpl.readString()

     */
    public void testReadString() throws SQLException {
        Object[] attributes = new Object[] { "hello" };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals("hello", impl.readString());

        try {
            impl.readString();
            fail("should throw SQLException");
        } catch (SQLException e) {
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.StreamMessageImpl.readString()

   
    // String
    msg = new StreamMessageImpl();
    msg.writeLong(123);
    msg.markAsReadOnly();
    assertEquals("123",msg.readString());
   
    // Bytes
    msg = new StreamMessageImpl();
    msg.writeLong(123);
    msg.markAsReadOnly();
View Full Code Here

Examples of org.activemq.message.ActiveMQStreamMessage.readString()

    try {
      msg.writeBoolean(true);
      msg.reset();
      assertTrue(msg.readBoolean());
      msg.reset();
      assertTrue(msg.readString().equals("true"));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

Examples of org.agilewiki.jid.ReadableBytes.readString()

            return null;
        if (value != null)
            return value;
        ReadableBytes readableBytes = readable();
        skipLen(readableBytes);
        value = readableBytes.readString(len);
        return value;
    }

    /**
     * Serialize the persistent data.
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.