public class LyricsHandler extends Object
| Modifier | Constructor and Description | 
|---|---|
protected  | 
LyricsHandler(byte[] tagData)
Looks for the Lyrics data, which will be
 just before the ID3v1 data (if present),
 and process it. 
 | 
  | 
LyricsHandler(InputStream stream,
             ContentHandler handler)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected static byte[] | 
getSuffix(InputStream stream,
         int length)
Reads and returns the last  
length bytes from the
 given stream. | 
boolean | 
hasID3v1()  | 
boolean | 
hasLyrics()  | 
public LyricsHandler(InputStream stream, ContentHandler handler) throws IOException, SAXException, TikaException
IOExceptionSAXExceptionTikaExceptionprotected LyricsHandler(byte[] tagData)
                 throws IOException,
                        SAXException,
                        TikaException
IOExceptionSAXExceptionTikaExceptionprotected static byte[] getSuffix(InputStream stream, int length) throws IOException
length bytes from the
 given stream.stream - input streamlength - number of bytes from the end to read and returnInputStream to read from.IOException - if the stream could not be read from.public boolean hasID3v1()
public boolean hasLyrics()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.