📄 audio.java
字号:
// EDITOR NOTE: Please set number of columns to 100 in ur editor.package com.openwave.mms.content;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import javax.mail.BodyPart;import javax.mail.MessagingException;import javax.mail.internet.MimeBodyPart;import javax.mail.internet.MimeUtility;import javax.activation.DataHandler;import javax.activation.FileDataSource;/** * This class represents a media object of type audio. */public final class Audio extends MediaObject { /** * The default constructor. */ public Audio() { } /** * This constructor initializes an <code>Audio</code> object from an existing JavaMail * <code>BodyPart</code>. * * @param bodyPart The body part from which to construct an <code>Audio</code> object. * @throws IOException There is an error reading the body part's content. * @throws ContentException There is a <code>MessagingException</code> while * creating this object. The <code>MessagingException</code> is wrapped * within. It can be obtained by calling * <code>ContentException.getWrappedException</code>. * @throws IllegalArgumentException The input argument is null. */ public Audio( BodyPart bodyPart ) throws IOException, IllegalArgumentException, ContentException { super( bodyPart ); } /** * This constructor initializes an <code>Audio</code> object by reading an audio file. * * @param file The audio file. * @throws FileNotFoundException The specified file does not exist. * @throws ContentException There is a <code>MessagingException</code> while * creating this object. The <code>MessagingException</code> is wrapped * within. It can be obtained by calling * <code>ContentException.getWrappedException</code>. * @throws IllegalArgumentException The input argument is null. */ public Audio( File file ) throws FileNotFoundException, IllegalArgumentException, ContentException { super( file ); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -