org.microemu.cldc.datagram
Class DatagramImpl
java.lang.Object
org.microemu.cldc.datagram.DatagramImpl
- All Implemented Interfaces:
- java.io.DataInput, java.io.DataOutput, Datagram
public class DatagramImpl
- extends java.lang.Object
- implements Datagram
Datagram realisation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getAddress
public java.lang.String getAddress()
- Specified by:
getAddress in interface Datagram
getData
public byte[] getData()
- Specified by:
getData in interface Datagram
getLength
public int getLength()
- Specified by:
getLength in interface Datagram
getOffset
public int getOffset()
- Specified by:
getOffset in interface Datagram
reset
public void reset()
- Specified by:
reset in interface Datagram
setAddress
public void setAddress(java.lang.String address)
throws java.io.IOException
- Specified by:
setAddress in interface Datagram
- Throws:
java.io.IOException
setAddress
public void setAddress(Datagram reference)
- Specified by:
setAddress in interface Datagram
setData
public void setData(byte[] buffer,
int offset,
int len)
- Specified by:
setData in interface Datagram
setLength
public void setLength(int len)
- Specified by:
setLength in interface Datagram
readBoolean
public boolean readBoolean()
throws java.io.IOException
- Specified by:
readBoolean in interface java.io.DataInput
- Throws:
java.io.IOException
readByte
public byte readByte()
throws java.io.IOException
- Specified by:
readByte in interface java.io.DataInput
- Throws:
java.io.IOException
readChar
public char readChar()
throws java.io.IOException
- Specified by:
readChar in interface java.io.DataInput
- Throws:
java.io.IOException
readDouble
public double readDouble()
throws java.io.IOException
- Specified by:
readDouble in interface java.io.DataInput
- Throws:
java.io.IOException
readFloat
public float readFloat()
throws java.io.IOException
- Specified by:
readFloat in interface java.io.DataInput
- Throws:
java.io.IOException
readFully
public void readFully(byte[] b)
throws java.io.IOException
- Specified by:
readFully in interface java.io.DataInput
- Throws:
java.io.IOException
readFully
public void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
- Specified by:
readFully in interface java.io.DataInput
- Throws:
java.io.IOException
readInt
public int readInt()
throws java.io.IOException
- Specified by:
readInt in interface java.io.DataInput
- Throws:
java.io.IOException
readLine
public java.lang.String readLine()
throws java.io.IOException
- Specified by:
readLine in interface java.io.DataInput
- Throws:
java.io.IOException
readLong
public long readLong()
throws java.io.IOException
- Specified by:
readLong in interface java.io.DataInput
- Throws:
java.io.IOException
readShort
public short readShort()
throws java.io.IOException
- Specified by:
readShort in interface java.io.DataInput
- Throws:
java.io.IOException
readUTF
public java.lang.String readUTF()
throws java.io.IOException
- Specified by:
readUTF in interface java.io.DataInput
- Throws:
java.io.IOException
readUnsignedByte
public int readUnsignedByte()
throws java.io.IOException
- Specified by:
readUnsignedByte in interface java.io.DataInput
- Throws:
java.io.IOException
readUnsignedShort
public int readUnsignedShort()
throws java.io.IOException
- Specified by:
readUnsignedShort in interface java.io.DataInput
- Throws:
java.io.IOException
skipBytes
public int skipBytes(int n)
throws java.io.IOException
- Specified by:
skipBytes in interface java.io.DataInput
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Specified by:
write in interface java.io.DataOutput
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Specified by:
write in interface java.io.DataOutput
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Specified by:
write in interface java.io.DataOutput
- Throws:
java.io.IOException
writeBoolean
public void writeBoolean(boolean v)
throws java.io.IOException
- Specified by:
writeBoolean in interface java.io.DataOutput
- Throws:
java.io.IOException
writeByte
public void writeByte(int v)
throws java.io.IOException
- Specified by:
writeByte in interface java.io.DataOutput
- Throws:
java.io.IOException
writeBytes
public void writeBytes(java.lang.String s)
throws java.io.IOException
- Specified by:
writeBytes in interface java.io.DataOutput
- Throws:
java.io.IOException
writeChar
public void writeChar(int v)
throws java.io.IOException
- Specified by:
writeChar in interface java.io.DataOutput
- Throws:
java.io.IOException
writeChars
public void writeChars(java.lang.String v)
throws java.io.IOException
- Specified by:
writeChars in interface java.io.DataOutput
- Throws:
java.io.IOException
writeDouble
public void writeDouble(double v)
throws java.io.IOException
- Specified by:
writeDouble in interface java.io.DataOutput
- Throws:
java.io.IOException
writeFloat
public void writeFloat(float v)
throws java.io.IOException
- Specified by:
writeFloat in interface java.io.DataOutput
- Throws:
java.io.IOException
writeInt
public void writeInt(int v)
throws java.io.IOException
- Specified by:
writeInt in interface java.io.DataOutput
- Throws:
java.io.IOException
writeLong
public void writeLong(long v)
throws java.io.IOException
- Specified by:
writeLong in interface java.io.DataOutput
- Throws:
java.io.IOException
writeShort
public void writeShort(int v)
throws java.io.IOException
- Specified by:
writeShort in interface java.io.DataOutput
- Throws:
java.io.IOException
writeUTF
public void writeUTF(java.lang.String str)
throws java.io.IOException
- Specified by:
writeUTF in interface java.io.DataOutput
- Throws:
java.io.IOException
Copyright © 2001-2010 MicroEmulator Team. All Rights Reserved.