Examples of readTag()


Examples of org.jnbt.NBTInputStream.readTag()

      } else {
        File[] listing = playersFolder.listFiles();
        for (int i = 0; i < (listing != null ? listing.length : 0); i++) {
          if (listing[i].isFile()) {
            NBTInputStream playerInputStream = new NBTInputStream(new FileInputStream(listing[i]));
            addPlayer(listing[i].getName().split("\\.")[0], (CompoundTag) ((CompoundTag)playerInputStream.readTag()));
            playerInputStream.close();
          }
        }
       
      }
View Full Code Here

Examples of org.red5.io.ITagReader.readTag()

    ITagReader reader = flv.getReader();
    System.out.println("test: " + reader);
    ITag tag = null;
    System.out.println("test: " + reader.hasMoreTags());
    while (reader.hasMoreTags()) {
      tag = reader.readTag();
      // System.out.println("test: " + f);
      printTag(tag);
    }

    // simply tests to see if the last tag of the flv file
View Full Code Here

Examples of org.red5.io.flv.impl.FLVReader.readTag()

      FLVReader reader = new FLVReader(file, true);
      KeyFrameMeta meta = reader.analyzeKeyFrames();
      log.debug("Meta: {}", meta);
      ITag tag = null;
      for (int t = 0; t < 6; t++) {
        tag = reader.readTag();
        log.debug("Tag: {}", tag);
      }
      reader.close();
      log.info("----------------------------------------------------------------------------------");
    } catch (IOException e) {
View Full Code Here

Examples of org.red5.io.flv.impl.FLVReader.readTag()

        KeyFrameMeta meta = reader.analyzeKeyFrames();
        log.debug("Meta: {}", meta);

        ITag tag = null;
        for (int t = 0; t < 6; t++) {
          tag = reader.readTag();
          log.debug("Tag: {}", tag);
        }
        reader.close();
        log.info("----------------------------------------------------------------------------------");
      }
View Full Code Here

Examples of org.red5.io.flv.impl.FLVReader.readTag()

    FLVWriter writer = new FLVWriter(fos, false);
    ITag tag = null;

    // Read first tag
    if (reader.hasMoreTags()) {
      tag = reader.readTag();
      if (tag.getDataType() == IoConstants.TYPE_METADATA) {
        if (!reader.hasMoreTags())
          throw new IOException(
              "File we're writing is metadata only?");
      }
View Full Code Here

Examples of org.red5.io.flv.impl.FLVReader.readTag()

      Arrays.sort(metaArr);
      cuePointTimeStamp = getTimeInMilliseconds(metaArr[0]);
    }

    while (reader.hasMoreTags()) {
      tag = reader.readTag();

      // if there are cuePoints in the array
      if (counter < metaArr.length) {

        // If the tag has a greater timestamp than the
View Full Code Here

Examples of org.red5.io.m4a.impl.M4AReader.readTag()

  public void testCtor() throws Exception {
   
    File file = new File("target/test-classes/fixtures/sample.m4a");
    M4AReader reader = new M4AReader(file);
   
    ITag tag = reader.readTag();
    log.debug("Tag: {}", tag);
    tag = reader.readTag();   
    log.debug("Tag: {}", tag);

  }
View Full Code Here

Examples of org.red5.io.m4a.impl.M4AReader.readTag()

    File file = new File("target/test-classes/fixtures/sample.m4a");
    M4AReader reader = new M4AReader(file);
   
    ITag tag = reader.readTag();
    log.debug("Tag: {}", tag);
    tag = reader.readTag();   
    log.debug("Tag: {}", tag);

  }
}
View Full Code Here

Examples of org.red5.io.mp4.impl.MP4Reader.readTag()

    KeyFrameMeta meta = reader.analyzeKeyFrames();
    log.debug("Meta: {}", meta);

    ITag tag = null;
    for (int t = 0; t < 32; t++) {
      tag = reader.readTag();
      log.debug("Tag: {}", tag);
    }

    log.info("----------------------------------------------------------------------------------");
View Full Code Here

Examples of rdpclient.ntlmssp.asn1.SubjectPublicKeyInfo.readTag()

        // SSL certificate public key with algorithm
        ByteBuffer subjectPublicKeyInfo = new ByteBuffer(sslState.serverCertificateSubjectPublicKeyInfo);

        // Parse subjectPublicKeyInfo
        SubjectPublicKeyInfo parser = new SubjectPublicKeyInfo("SubjectPublicKeyInfo");
        parser.readTag(subjectPublicKeyInfo);

        // Copy subjectPublicKey subfield to separate byte buffer
        ByteBuffer subjectPublicKey = new ByteBuffer(subjectPublicKeyInfo.length);
        parser.subjectPublicKey.writeTag(subjectPublicKey);
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.