Class AudioPacer.PcmFileChunks
java.lang.Object
com.alibaba.dashscope.resources.audio.AudioPacer.PcmFileChunks
- All Implemented Interfaces:
AutoCloseable,Iterable<byte[]>
- Enclosing class:
- AudioPacer
public static final class AudioPacer.PcmFileChunks
extends Object
implements Iterable<byte[]>, AutoCloseable
Single-use, file-backed chunk iterable that owns one handle;
close() releases it and
is terminal. Modeled on the transport streams (JobEventStream and friends): a second
iterator() or any use after close() raises IllegalStateException.-
Method Details
-
iterator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-