Package entagged.audioformats.asf.data

Examples of entagged.audioformats.asf.data.EncodingChunk


   *              chunk. <br>
   * @throws IOException
   *                   read errors.
   */
  private EncodingChunk parseData(RandomAccessFile raf) throws IOException {
    EncodingChunk result = null;
    long chunkStart = raf.getFilePointer();
    GUID guid = Utils.readGUID(raf);
    if (GUID.GUID_ENCODING.equals(guid)) {
      BigInteger chunkLen = Utils.readBig64(raf);
      result = new EncodingChunk(chunkStart, chunkLen);

      // Can't be interpreted
      /*
       * What do I think of this data, well it seems to be another GUID.
       * Then followed by a UINT16 indicating a length of data following
       * (by half). My test files just had the length of one and a two
       * bytes zero.
       */
      raf.skipBytes(20);

      /*
       * Read the number of strings which will follow
       */
      int stringCount = Utils.readUINT16(raf);

      /*
       * Now reading the specified amount of strings.
       */
      for (int i = 0; i < stringCount; i++) {
        result.addString(Utils.readCharacterSizedString(raf));
      }
    }
    return result;
  }
View Full Code Here


       * whithin asf header. Further we need to identify the type of those
       * chunks and parse the interesting ones.
       */
      FileHeader fileHeader = null;
      ExtendedContentDescription extendedDescription = null;
      EncodingChunk encodingChunk = null;
      StreamChunk streamChunk = null;
      ContentDescription contentDescription = null;
      StreamBitratePropertiesChunk bitratePropertiesChunk = null;

      Iterator iterator = chunks.iterator();
View Full Code Here

TOP

Related Classes of entagged.audioformats.asf.data.EncodingChunk

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.