|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.avetana.bluetooth.obex.OperationImpl
| Nested Class Summary | |
protected class |
OperationImpl.OBEXInputStream
An own extension of the classical java InputStream class. |
| Constructor Summary | |
protected |
OperationImpl(CommandHandler con,
HeaderSet hs,
int opCode)
|
| Method Summary | |
void |
abort()
Sends an ABORT message to the server. |
void |
close()
|
java.lang.String |
getEncoding()
|
protected HeaderSet |
getHeadersToSend()
|
long |
getLength()
|
HeaderSet |
getReceivedHeaders()
Returns the headers that have been received during the operation. |
int |
getResponseCode()
Returns the response code received from the server. |
java.lang.String |
getType()
|
protected void |
newData(HeaderSet header)
|
java.io.DataInputStream |
openDataInputStream()
|
java.io.DataOutputStream |
openDataOutputStream()
|
java.io.InputStream |
openInputStream()
|
java.io.OutputStream |
openOutputStream()
|
void |
sendHeaders(HeaderSet headers)
Specifies the headers that should be sent in the next OBEX message that is sent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected OperationImpl(CommandHandler con,
HeaderSet hs,
int opCode)
throws java.io.IOException
| Method Detail |
public void abort()
throws java.io.IOException
Operationclose() will be called by this method.
abort in interface Operationjava.io.IOException - if the transaction has already ended or if an
OBEX server calls this method
public HeaderSet getReceivedHeaders()
throws java.io.IOException
Operation
getReceivedHeaders in interface OperationOperation
java.io.IOException - if this Operation has been closed
public void sendHeaders(HeaderSet headers)
throws java.io.IOException
Operation
sendHeaders in interface Operationheaders - the headers to send in the next message
java.io.IOException - if this Operation has been closed
or the transaction has ended and no further messages will be exchangedprotected HeaderSet getHeadersToSend()
public int getResponseCode()
throws java.io.IOException
OperationResponseCodes class.
getResponseCode in interface Operationjava.io.IOException - if an error occurred in the transport layer during
the transaction; if this object was created by an OBEX serverResponseCodespublic java.lang.String getEncoding()
getEncoding in interface ContentConnectionpublic long getLength()
getLength in interface ContentConnectionpublic java.lang.String getType()
getType in interface ContentConnection
public java.io.DataInputStream openDataInputStream()
throws java.io.IOException
openDataInputStream in interface InputConnectionjava.io.IOException
public java.io.InputStream openInputStream()
throws java.io.IOException
openInputStream in interface InputConnectionjava.io.IOException
public java.io.DataOutputStream openDataOutputStream()
throws java.io.IOException
openDataOutputStream in interface OutputConnectionjava.io.IOException
public java.io.OutputStream openOutputStream()
throws java.io.IOException
openOutputStream in interface OutputConnectionjava.io.IOExceptionpublic void close()
close in interface Connectionprotected void newData(HeaderSet header)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||