code: private void readStreamSync() throws IOException {
          int id = 0;
          for (int i = 0; i < 4;) {
              int x = bitStream.readRawUInt(8);
              if (x == Constants.STREAM_SYNC_STRING[i]) {
                  i++;
                  id = 0;
              } else if (x == ID3V2_TAG[id]) {
                  id++;
                  i = 0;
                  if (id == 3) {
                      skipID3v2Tag();
                      id = 0;
                  }
              } else {
                  throw new IOException("Could not find Stream Sync");
                  //i = 0;
                  //id = 0;
              }
          }
      }
docs: Read the stream sync string.
  @throws IOException  On read error