|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjavax.sound.midi.MidiFileFormat
public class MidiFileFormat
MidiFileFormat 객체는, MIDI 파일의 형태를 길이 및 타이밍 정보와 함께 캡슐화합니다.
MidiFileFormat 객체에는, 일식의 프로퍼티을 짜넣을 수가 있습니다. 1 개의 프로퍼티은, 열쇠와 값의 페어로부터 완성됩니다. 열쇠는 String 형으로, 대응하는 프로퍼티치는 임의의 객체입니다. 프로퍼티에는, 작성자나 저작권 등, 부가적인 정보의 메타데이타를 지정합니다. 프로퍼티은 옵션 정보이므로, 파일 리더 및 파일 리더의 구현으로 프로퍼티을 제공하거나 인식하거나 하는 것은 필수가 아닙니다.
다음의 겉(표)에, 구현으로 사용되는 일반적인 프로퍼티의 예를 나타냅니다.
| 프로퍼티의 키 | 값의 형태 | 설명 |
|---|---|---|
| " 「author」" | String |
이 파일의 작성자의 이름 |
| "title" | String |
이 파일의 타이틀 |
| " 「copyright」" | String |
저작권 메세지 |
| "date" | Date |
녹음 또는 릴리스의 일자 |
| " 「comment」" | String |
임의의 텍스트 |
MidiSystem.getMidiFileFormat(java.io.File) ,
Sequencer.setSequence(java.io.InputStream stream) | 필드의 개요 | |
|---|---|
protected int |
byteLength
MIDI 파일의 길이를 바이트로 표시한 것입니다. |
protected float |
divisionType
MIDI 파일의 분할 형식입니다. |
protected long |
microsecondLength
MIDI 파일의 듀레이션을 마이크로 세컨드로 표시한 것입니다. |
protected int |
resolution
MIDI 파일의 타이밍 해상도입니다. |
protected int |
type
MIDI 파일의 형태입니다. |
static int |
UNKNOWN_LENGTH
길이가 미지인 것을 나타냅니다. |
| 생성자 의 개요 | |
|---|---|
MidiFileFormat (int type,
float divisionType,
int resolution,
int bytes,
long microseconds)
MidiFileFormat 를 구축합니다. |
|
MidiFileFormat (int type,
float divisionType,
int resolution,
int bytes,
long microseconds,
Map <String ,Object > properties)
MidiFileFormat 를, 일식의 프로퍼티을 짜넣어 구축합니다. |
|
| 메소드의 개요 | |
|---|---|
int |
getByteLength ()
MIDI 파일의 길이를 8 비트 바이트 단위로 가져옵니다. |
float |
getDivisionType ()
MIDI 파일의 타이밍 분할 형식을 가져옵니다. |
long |
getMicrosecondLength ()
MIDI 파일의 길이를 마이크로 세컨드 단위로 가져옵니다. |
Object |
getProperty (String key)
키에 의해 지정된 프로퍼티치를 가져옵니다. |
int |
getResolution ()
MIDI 파일의 타이밍 해상도를 가져옵니다. |
int |
getType ()
MIDI 파일형을 가져옵니다. |
Map <String ,Object > |
properties ()
변경 불가능한 프로퍼티의 맵을 가져옵니다. |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 필드의 상세 |
|---|
public static final int UNKNOWN_LENGTH
getByteLength() ,
getMicrosecondLength() ,
정수 필드치 protected int type
protected float divisionType
Sequence.PPQ ,
Sequence.SMPTE_24 ,
Sequence.SMPTE_25 ,
Sequence.SMPTE_30DROP ,
Sequence.SMPTE_30 protected int resolution
protected int byteLength
protected long microsecondLength
| 생성자 의 상세 |
|---|
public MidiFileFormat(int type,
float divisionType,
int resolution,
int bytes,
long microseconds)
를 구축합니다.
- 파라미터:
type - MIDI 파일의 형태 (0, 1, 또는 2)divisionType - 타이밍 분할 형식 (PPQ, 또는 SMPTE 형식의 1 개)resolution - 타이밍 해상도bytes - MIDI 파일의 길이 (바이트 단위)인가, 길이가 미지의 경우는 UNKNOWN_LENGTHmicroseconds - MIDI 파일의 듀레이션 (마이크로 세컨드 단위)인가, 길이가 미지의 경우는 UNKNOWN_LENGTH- 관련 항목:
UNKNOWN_LENGTH ,
Sequence.PPQ ,
Sequence.SMPTE_24 ,
Sequence.SMPTE_25 ,
Sequence.SMPTE_30DROP ,
Sequence.SMPTE_30
public MidiFileFormat(int type,
float divisionType,
int resolution,
int bytes,
long microseconds,
Map <String ,Object > properties)
MidiFileFormat 를, 일식의 프로퍼티을 짜넣어 구축합니다.
type - MIDI 파일의 형태 (0, 1, 또는 2)divisionType - 타이밍 분할 형식
(PPQ, 또는 SMPTE 형식의 1 개)resolution - 타이밍 해상도bytes - MIDI 파일의 길이 (바이트 단위)인가,
길이가 미지의 경우는 UNKNOWN_LENGTHmicroseconds - MIDI 파일의 듀레이션 (마이크로 세컨드 단위)인가,
길이가 미지의 경우는 UNKNOWN_LENGTHproperties - 프로퍼티을 지정했다
Map<String, Object> 객체UNKNOWN_LENGTH ,
Sequence.PPQ ,
Sequence.SMPTE_24 ,
Sequence.SMPTE_25 ,
Sequence.SMPTE_30DROP ,
Sequence.SMPTE_30 | 메소드의 상세 |
|---|
public int getType()
public float getDivisionType()
Sequence.Sequence(float, int) ,
Sequence.PPQ ,
Sequence.SMPTE_24 ,
Sequence.SMPTE_25 ,
Sequence.SMPTE_30DROP ,
Sequence.SMPTE_30 ,
Sequence.getDivisionType() public int getResolution()
getDivisionType() ,
Sequence.getResolution() public int getByteLength()
UNKNOWN_LENGTH public long getMicrosecondLength()
Sequence.getMicrosecondLength() ,
getByteLength() ,
UNKNOWN_LENGTH public Map <String ,Object > properties()
클래스의 설명 중(안)에서 해설합니다.
Map<String, Object>
객체. 프로퍼티이 1 개나 인식되지 않는 경우는, 빈 상태(empty)의 맵이 반환되는getProperty(String) public Object getProperty(String key)
클래스의 설명 중(안)에서 해설합니다.
지정한 프로퍼티이 특정의 파일 형식에서 정의되어 있지 않은 경우, 이 메소드는 null 를 돌려줍니다.
key - 취득하고 싶은 프로퍼티의 키
nullproperties
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.