Class WavAudioFile
java.lang.Object
com.independentsoft.office.drawing.WavAudioFile
The Class WavAudioFile.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new wav audio file.WavAudioFile(InternalXMLStreamReader reader)Instantiates a new wav audio file.WavAudioFile(String filePath)Instantiates a new wav audio file. -
Method Summary
Modifier and TypeMethodDescriptionclone()byte[]Gets the buffer.Gets the file name.Gets the input stream.getName()Gets the name.booleanChecks if is built in.voidLoad.voidLoad.voidload(String fileName, InputStream inputStream)Load.voidsave(OutputStream outputStream)Save.voidSave.voidSave.voidsetBuffer(byte[] buffer)Sets the buffer.voidsetBuiltIn(boolean builtIn)Sets the built in.voidsetFileName(String fileName)Sets the file name.voidSets the name.toString()
-
Constructor Details
-
WavAudioFile
public WavAudioFile()Instantiates a new wav audio file. -
WavAudioFile
Instantiates a new wav audio file.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
WavAudioFile
Instantiates a new wav audio file.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
load
Load.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file nameinputStream- the input stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file namebuffer- the buffer
-
save
Save.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
filePath- the file pathoverwrite- the overwrite- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
outputStream- the output stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
getInputStream
Gets the input stream.- Returns:
- the input stream
-
clone
-
toString
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
isBuiltIn
public boolean isBuiltIn()Checks if is built in.- Returns:
- true, if is built in
-
setBuiltIn
public void setBuiltIn(boolean builtIn)Sets the built in.- Parameters:
builtIn- the new built in
-
getFileName
Gets the file name.- Returns:
- the file name
-
setFileName
Sets the file name.- Parameters:
fileName- the new file name
-
getBuffer
public byte[] getBuffer()Gets the buffer.- Returns:
- the buffer
-
setBuffer
public void setBuffer(byte[] buffer)Sets the buffer.- Parameters:
buffer- the new buffer
-