|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gagravarr.flac.FlacFile
public abstract class FlacFile
This wrapper lets you work with FLAC files, whether they're Ogg or Native framed.
Field Summary | |
---|---|
protected FlacInfo |
info
|
protected List<FlacMetadataBlock> |
otherMetadata
|
protected FlacTags |
tags
|
Constructor Summary | |
---|---|
FlacFile()
|
Method Summary | |
---|---|
abstract void |
close()
In Reading mode, will close the underlying ogg/flac file and free its resources. |
FlacInfo |
getInfo()
|
abstract FlacAudioFrame |
getNextAudioPacket()
|
FlacTags |
getTags()
|
static FlacFile |
open(File f)
Opens the given file for reading |
static FlacFile |
open(InputStream inp)
Opens the given file for reading. |
static FlacFile |
open(OggFile ogg)
Opens the given file for reading |
abstract void |
skipToGranule(long granulePosition)
Skips the audio data to the next packet with a granule of at least the given granule position. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FlacInfo info
protected FlacTags tags
protected List<FlacMetadataBlock> otherMetadata
Constructor Detail |
---|
public FlacFile()
Method Detail |
---|
public static FlacFile open(File f) throws IOException, FileNotFoundException
IOException
FileNotFoundException
public static FlacFile open(InputStream inp) throws IOException, FileNotFoundException
inp
- The InputStrem to read from, which must support mark/reset
IOException
FileNotFoundException
public static FlacFile open(OggFile ogg) throws IOException
IOException
public abstract FlacAudioFrame getNextAudioPacket() throws IOException
IOException
public abstract void skipToGranule(long granulePosition) throws IOException
IOException
public FlacInfo getInfo()
public FlacTags getTags()
public abstract void close() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |