Here you can find the source of removeUnusedData(String songData)
public static String removeUnusedData(String songData)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static String GARBAGE = "---"; public static List<Boolean> bitMap = new ArrayList<Boolean>(); public static String removeUnusedData(String songData) { StringBuilder builder = new StringBuilder(); String split[] = songData.split("\t"); for (int i = 0; i < 54; ++i) { if (!bitMap.get(i)) { split[i] = GARBAGE;//from w w w.j a v a2 s.c o m } builder.append(split[i]); builder.append("\t"); } return builder.toString(); } }