|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.sound.sampled.AudioFileFormat
public class AudioFileFormat
AudioFileFormat
클래스의 인스턴스는, 오디오 파일에 대해, 파일의 형태, 바이트수로 나타내지는 파일의 길이, 파일에 포함되는 오디오 데이터의 샘플 프레임수로 나타내지는 길이, 오디오 데이터의 형식등을 기술합니다.
클래스에는, 오디오 파일 형식의 판별, 오디오 파일로부터의 오디오 입력 스트림의 취득, 및 오디오 입력 스트림로부터의 오디오 파일의 서두를 실행하는 메소드가 포함됩니다.
AudioSystem
AudioFileFormat
객체에는, 일식의 프로퍼티을 짜넣을 수가 있습니다. 1 개의 프로퍼티은, 열쇠와 값의 페어로부터 완성됩니다. 열쇠는 String
형으로, 대응하는 프로퍼티치는 임의의 객체입니다. 프로퍼티에는, 작성자나 저작권이나 파일의 듀레이션 등, 부가적인 정보의 메타데이타를 지정합니다. 프로퍼티은 옵션 정보이므로, 파일 리더 및 파일 리더의 구현으로 프로퍼티을 제공하거나 인식하거나 하는 것은 필수가 아닙니다.
다음의 겉(표)에, 구현으로 사용되는 일반적인 프로퍼티의 예를 나타냅니다.
프로퍼티의 키 | 값의 형태 | 설명 |
---|---|---|
" 「duration」" | Long |
마이크로 세컨드 단위에서의 파일의 재생 듀레이션 |
" 「author」" | String |
이 파일의 작성자의 이름 |
"title" | String |
이 파일의 타이틀 |
" 「copyright」" | String |
저작권 메세지 |
"date" | Date |
녹음 또는 릴리스의 일자 |
" 「comment」" | String |
임의의 텍스트 |
AudioInputStream
상자의 클래스의 개요 | |
---|---|
static class |
AudioFileFormat.Type
Type 클래스의 인스턴스는, 오디오 파일의 표준 타입을 나타냅니다. |
생성자 의 개요 | |
---|---|
|
AudioFileFormat (AudioFileFormat.Type type,
AudioFormat format,
int frameLength)
오디오 파일 형식 객체를 구축합니다. |
|
AudioFileFormat (AudioFileFormat.Type type,
AudioFormat format,
int frameLength,
Map <String ,Object > properties)
정의된 일식의 프로퍼티을 사용해, 오디오 파일 형식 객체를 구축합니다. |
protected |
AudioFileFormat (AudioFileFormat.Type type,
int byteLength,
AudioFormat format,
int frameLength)
오디오 파일 형식 객체를 구축합니다. |
메소드의 개요 | |
---|---|
int |
getByteLength ()
(오디오 데이터 뿐만이 아니라) 오디오 파일 전체의 사이즈를 바이트 단위로 가져옵니다. |
AudioFormat |
getFormat ()
오디오 파일에 포함되는 오디오 데이터의 형식을 가져옵니다. |
int |
getFrameLength ()
샘플 프레임수로 나타내지는, 파일에 포함되는 오디오 데이터의 길이를 가져옵니다. |
Object |
getProperty (String key)
키에 의해 지정된 프로퍼티치를 가져옵니다. |
AudioFileFormat.Type |
getType ()
WAVE 또는 AU 등의 오디오 파일형을 가져옵니다. |
Map <String ,Object > |
properties ()
변경 불가능한 프로퍼티의 맵을 가져옵니다. |
String |
toString ()
파일 형식의 캐릭터 라인 표현을 제공합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
protected AudioFileFormat(AudioFileFormat.Type type, int byteLength, AudioFormat format, int frameLength)
type
- 오디오 파일의 형태byteLength
- 바이트수로 나타내지는 파일의 길이, 또는 AudioSystem.NOT_SPECIFIED
format
- 파일에 포함되는 오디오 데이터의 형식frameLength
- 샘플 프레임수로 나타내지는 오디오 데이터의 길이, 또는 AudioSystem.NOT_SPECIFIED
getType()
public AudioFileFormat(AudioFileFormat.Type type, AudioFormat format, int frameLength)
type
- 오디오 파일의 형태format
- 파일에 포함되는 오디오 데이터의 형식frameLength
- 샘플 프레임수로 나타내지는 오디오 데이터의 길이, 또는 AudioSystem.NOT_SPECIFIED
public AudioFileFormat(AudioFileFormat.Type type, AudioFormat format, int frameLength, Map <String ,Object > properties)
type
- 오디오 파일의 형태format
- 파일에 포함되는 오디오 데이터의 형식frameLength
- 샘플 프레임수로 나타내지는 오디오 데이터의 길이, 또는
AudioSystem.NOT_SPECIFIED
properties
- 프로퍼티을 지정했다
Map<String, Object>
객체메소드의 상세 |
---|
public AudioFileFormat.Type getType()
WAVE
또는 AU
등의 오디오 파일형을 가져옵니다.
AudioFileFormat.Type.WAVE
,
AudioFileFormat.Type.AU
,
AudioFileFormat.Type.AIFF
,
AudioFileFormat.Type.AIFC
,
AudioFileFormat.Type.SND
public int getByteLength()
AudioSystem.NOT_SPECIFIED
public AudioFormat getFormat()
public int getFrameLength()
AudioSystem.NOT_SPECIFIED
public Map <String ,Object > properties()
클래스의 설명
을 참조해 주세요.
Map<String, Object>
객체. 프로퍼티이 1 개나 인식되지 않는 경우는, 빈 상태(empty)의 맵이 반환되는getProperty(String)
public Object getProperty(String key)
클래스의 설명
을 참조해 주세요.
지정한 프로퍼티이 특정의 파일 형식에서 정의되어 있지 않은 경우, 이 메소드는 null
를 돌려줍니다.
key
- 취득하고 싶은 프로퍼티의 키
null
properties
public String toString()
Object
내의 toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.