|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectRedes.Direccion
Redes.Ethernet.DireccionEthernet
Direccion MAC
| Field Summary |
| Fields inherited from class Redes.Direccion |
kNOINICIALIZADO |
| Constructor Summary | |
DireccionEthernet(Direccion direccion)
Constructor |
|
DireccionEthernet(int b0,
int b1,
int b2,
int b3,
int b4,
int b5)
Constructor en base a los bytes que la forman |
|
DireccionEthernet(java.lang.String mac)
Constructor en base a una cadena de texto |
|
| Method Summary | |
boolean |
EsBroadcast()
Comprueba si la direccion ethernet es de broadcast |
java.lang.String |
toString()
Convierte la direccion MAC a una cadena de texto |
| Methods inherited from class Redes.Direccion |
equals, getBits, getByte, Longitud, setByte, Tipo |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DireccionEthernet(java.lang.String mac)
throws java.lang.IllegalArgumentException
mac - Direccion MAC
java.lang.IllegalArgumentException - si la cadena de texto no se puede convertir
a una direccion MAC
public DireccionEthernet(int b0,
int b1,
int b2,
int b3,
int b4,
int b5)
throws java.lang.IllegalArgumentException
b0 - Byte 0b1 - Byte 1b2 - Byte 2b3 - Byte 3b4 - Byte 4b5 - Byte 5
java.lang.IllegalArgumentException
public DireccionEthernet(Direccion direccion)
throws java.lang.IllegalArgumentException
direccion - Direccion de la misma longitud (6 bytes)
java.lang.IllegalArgumentException - si la direccion indicada no es compatible| Method Detail |
public java.lang.String toString()
public boolean EsBroadcast()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||