mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Cleanup XMPPTCPConnection, mostly exception handling
In initConnection, only initReaderAndWriter() throws IOException. connectUsingConfiguration doesn't need to take an argument. PacketReader.init does not throw a SmackException. Use Async.go() in PacketWriter, just like it's already done in PacketReader.
This commit is contained in:
parent
d9c97fabfb
commit
30ec2bd072
2 changed files with 39 additions and 64 deletions
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.jivesoftware.smack.compression;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
|
@ -47,9 +48,9 @@ public abstract class XMPPInputOutputStream {
|
|||
|
||||
public abstract boolean isSupported();
|
||||
|
||||
public abstract InputStream getInputStream(InputStream inputStream) throws Exception;
|
||||
public abstract InputStream getInputStream(InputStream inputStream) throws IOException;
|
||||
|
||||
public abstract OutputStream getOutputStream(OutputStream outputStream) throws Exception;
|
||||
public abstract OutputStream getOutputStream(OutputStream outputStream) throws IOException;
|
||||
|
||||
public enum FlushMethod {
|
||||
FULL_FLUSH,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue