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
IOException
FileNotFoundException
public static FlacFile open(InputStream inp) throws IOException, FileNotFoundException
inp
- The InputStrem to read from, which must support mark/resetIOException
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
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2015. All rights reserved.