javax.sound.sampled

Class Port.Info

public static class Port.Info extends Line.Info

This describes a single port.

Since: 1.3

Field Summary
static Port.InfoCOMPACT_DISC
A CD player.
static Port.InfoHEADPHONE
Headphones.
static Port.InfoLINE_IN
Generic input line.
static Port.InfoLINE_OUT
Generic output line.
static Port.InfoMICROPHONE
A microphone.
static Port.InfoSPEAKER
A speaker.
Constructor Summary
Info(Class<?> klass, String name, boolean isSource)
Create a new Info object, given the line's class, the name, and an argument indicating whether this is an input or an output.
Method Summary
booleanequals(Object o)
StringgetName()
Return the name of this object.
inthashCode()
booleanisSource()
Return true if this describes an input line.
booleanmatches(Line.Info other)
StringtoString()

Field Detail

COMPACT_DISC

public static final Port.Info COMPACT_DISC
A CD player.

HEADPHONE

public static final Port.Info HEADPHONE
Headphones.

LINE_IN

public static final Port.Info LINE_IN
Generic input line.

LINE_OUT

public static final Port.Info LINE_OUT
Generic output line.

MICROPHONE

public static final Port.Info MICROPHONE
A microphone.

SPEAKER

public static final Port.Info SPEAKER
A speaker.

Constructor Detail

Info

public Info(Class<?> klass, String name, boolean isSource)
Create a new Info object, given the line's class, the name, and an argument indicating whether this is an input or an output.

Parameters: klass the class of the line name the name of the line isSource true if this is an input source

Method Detail

equals

public final boolean equals(Object o)

getName

public String getName()
Return the name of this object.

hashCode

public final int hashCode()

isSource

public boolean isSource()
Return true if this describes an input line.

matches

public boolean matches(Line.Info other)

toString

public final String toString()