APIdia Launch Partner
Top Fields Constructors Methods
com.sun.media.jfxmediaimpl

public abstract Class MetadataParserImpl

extends Thread
implements MetadataParser
Class Inheritance
All Implemented Interfaces
com.sun.media.jfxmedia.MetadataParser
Known Direct Subclasses
com.sun.media.jfxmediaimpl.platform.java.ID3MetadataParser
Imports
java.io.IOException, .EOFException, java.nio.ByteBuffer, java.util.Map, .HashMap, .List, .ArrayList, .ListIterator, .Collections, java.lang.ref.WeakReference, com.sun.media.jfxmedia.locator.Locator, .ConnectionHolder, com.sun.media.jfxmedia.events.MetadataListener, java.nio.charset.Charset

Field Summary

Modifier and TypeField and Description
private ByteBuffer
private ConnectionHolder
private int
private int
private final List<WeakReference<MetadataListener>>
private Locator
private Map<String, Object>
private boolean
protected ByteBuffer
private Map<String, ByteBuffer>
private int
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
protected void
protected void
private void
adjustRawMetadataSize(int addSize)

protected Object
protected void
protected void
protected void
done()

protected byte[]
getBytes(int size)

protected double
protected int
protected long
protected byte
protected short
protected long
protected int
protected String
getString(int length, Charset charset)

protected int
protected abstract void
protected void
readRawMetadata(int size)

public void
public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.

protected void
setParseRawMetadata(boolean state)

protected void
skipBytes(int num)

public void
protected void
startRawMetadata(int sizeHint)

public void
protected void
stuffRawMetadata(byte[] data, int offset, int size)

Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadthreadIdtoStringyield

Field Detail

bufferback to summary
private ByteBuffer buffer
connectionHolderback to summary
private ConnectionHolder connectionHolder
indexback to summary
private int index
lengthback to summary
private int length
listenersback to summary
private final List<WeakReference<MetadataListener>> listeners
locatorback to summary
private Locator locator
metadataback to summary
private Map<String, Object> metadata
parsingRawMetadataback to summary
private boolean parsingRawMetadata
rawMetaBlobback to summary
protected ByteBuffer rawMetaBlob
rawMetaMapback to summary
private Map<String, ByteBuffer> rawMetaMap
streamPositionback to summary
private int streamPosition

Constructor Detail

MetadataParserImplback to summary
public MetadataParserImpl(Locator locator)

Method Detail

addListenerback to summary
public void addListener(MetadataListener listener)

Implements com.sun.media.jfxmedia.MetadataParser.addListener.

Annotations
@Override
addMetadataItemback to summary
protected void addMetadataItem(String tag, Object value)
addRawMetadataback to summary
protected void addRawMetadata(String type)
adjustRawMetadataSizeback to summary
private void adjustRawMetadataSize(int addSize)
convertValueback to summary
protected Object convertValue(String tag, Object value)
disposeMetadataback to summary
protected void disposeMetadata()
disposeRawMetadataback to summary
protected void disposeRawMetadata()
doneback to summary
protected void done()
getBytesback to summary
protected byte[] getBytes(int size) throws IOException, EOFException
getDoubleback to summary
protected double getDouble() throws IOException, EOFException
getIntegerback to summary
protected int getInteger() throws IOException, EOFException
getLongback to summary
protected long getLong() throws IOException, EOFException
getNextByteback to summary
protected byte getNextByte() throws IOException, EOFException
getShortback to summary
protected short getShort() throws IOException, EOFException
getStreamLengthback to summary
protected long getStreamLength()
getStreamPositionback to summary
protected int getStreamPosition()
getStringback to summary
protected String getString(int length, Charset charset) throws IOException, EOFException
getU24back to summary
protected int getU24() throws IOException, EOFException
parseback to summary
protected abstract void parse()
readRawMetadataback to summary
protected void readRawMetadata(int size) throws IOException
removeListenerback to summary
public void removeListener(MetadataListener listener)

Implements com.sun.media.jfxmedia.MetadataParser.removeListener.

Annotations
@Override
runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.

Annotations
@Override
setParseRawMetadataback to summary
protected void setParseRawMetadata(boolean state)
skipBytesback to summary
protected void skipBytes(int num) throws IOException, EOFException
startParserback to summary
public void startParser() throws IOException

Implements com.sun.media.jfxmedia.MetadataParser.startParser.

Annotations
@Override
startRawMetadataback to summary
protected void startRawMetadata(int sizeHint)
stopParserback to summary
public void stopParser()

Implements com.sun.media.jfxmedia.MetadataParser.stopParser.

Annotations
@Override
stuffRawMetadataback to summary
protected void stuffRawMetadata(byte[] data, int offset, int size)