FileDocCategorySizeDatePackage
UnicodeMetrics.javaAPI DocMyID3 for Android5583Tue Oct 07 13:33:14 BST 2008org.cmc.music.myid3

UnicodeMetrics

public abstract class UnicodeMetrics extends Object implements MyID3v2Constants

Fields Summary
Constructors Summary
Methods Summary
protected abstract intfindEnd(byte[] bytes, int index, boolean includeTerminator)

public final intfindEndWithTerminator(byte[] bytes, int index)

		return findEnd(bytes, index, true);
	
public final intfindEndWithoutTerminator(byte[] bytes, int index)

		return findEnd(bytes, index, false);
	
public static org.cmc.music.myid3.UnicodeMetricsgetInstance(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);
		}