UnicodeMetricspublic abstract class UnicodeMetrics extends Object implements MyID3v2Constants
Methods Summary |
---|
protected abstract int | findEnd(byte[] bytes, int index, boolean includeTerminator)
| public final int | findEndWithTerminator(byte[] bytes, int index)
return findEnd(bytes, index, true);
| public final int | findEndWithoutTerminator(byte[] bytes, int index)
return findEnd(bytes, index, false);
| public static org.cmc.music.myid3.UnicodeMetrics | getInstance(int charEncodingCode)
switch (charEncodingCode)
{
case CHAR_ENCODING_CODE_ISO_8859_1 :
return new UnicodeMetricsASCII();
case CHAR_ENCODING_CODE_UTF_8 :
return new UnicodeMetricsUTF8();
case CHAR_ENCODING_CODE_UTF_16_WITH_BOM :
return new UnicodeMetricsUTF16WithBOM();
case CHAR_ENCODING_CODE_UTF_16_NO_BOM :
return new UnicodeMetricsUTF16NoBOM();
default :
throw new IOException("Unknown char encoding code: "
+ charEncodingCode);
}
|
|