public abstract class FlacFile extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected FlacInfo |
info |
protected List<FlacMetadataBlock> |
otherMetadata |
protected FlacTags |
tags |
| Constructor and Description |
|---|
FlacFile() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected FlacInfo info
protected FlacTags tags
protected List<FlacMetadataBlock> otherMetadata
public static FlacFile open(File f) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic static FlacFile open(InputStream inp) throws IOException, FileNotFoundException
inp - The InputStrem to read from, which must support mark/resetIOExceptionFileNotFoundExceptionpublic static FlacFile open(OggFile ogg) throws IOException
IOExceptionpublic abstract FlacAudioFrame getNextAudioPacket() throws IOException
IOExceptionpublic abstract void skipToGranule(long granulePosition)
throws IOException
IOExceptionpublic FlacInfo getInfo()
public FlacTags getTags()
public abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2021. All rights reserved.