|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jiac.micro.internal.io.AbstractConnectionMapper
public abstract class AbstractConnectionMapper
| Field Summary | |
|---|---|
protected javax.microedition.io.Connection |
connection
|
| Constructor Summary | |
|---|---|
AbstractConnectionMapper()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the complete connection and both streams if acquired! |
boolean |
equals(Object obj)
|
InputStream |
getInputStream()
Method to obtain the InputStream for this connection. |
OutputStream |
getOutputStream()
Method to obtain the OutputStream for this connection. |
int |
hashCode()
|
abstract void |
initialise(javax.microedition.io.Connection mapped)
Initialises this mapper. |
boolean |
isOpen()
Checks whether the underlying connection is still open. |
protected abstract InputStream |
openInputStream()
|
protected abstract OutputStream |
openOutputStream()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.microedition.io.Connection connection
| Constructor Detail |
|---|
public AbstractConnectionMapper()
| Method Detail |
|---|
public final void close()
IStreamConnection
close in interface IStreamConnectionclose in interface javax.microedition.io.Connection
public final InputStream getInputStream()
throws IOException
IStreamConnection
getInputStream in interface IStreamConnectionIOException - if no InputStream is available or the connection is closed
public final OutputStream getOutputStream()
throws IOException
IStreamConnection
getOutputStream in interface IStreamConnectionIOException - if no OutputStream is available or the connection is closedpublic final boolean equals(Object obj)
equals in class Objectpublic final int hashCode()
hashCode in class Objectpublic final boolean isOpen()
IStreamConnection
isOpen in interface IStreamConnectiontrue if this connection is still open and
false otherwise
public abstract void initialise(javax.microedition.io.Connection mapped)
throws IOException
mapped - the open connection of a specific type
IOException - if mapped has a wrong type or another problem occured
protected abstract InputStream openInputStream()
throws IOException
IOException
protected abstract OutputStream openOutputStream()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||