Java 类org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamSession 实例源码

项目:Smack    文件:IBBTransferNegotiator.java   
InputStream negotiateIncomingStream(Stanza streamInitiation) throws NotConnectedException {
    // build In-Band Bytestream request
    InBandBytestreamRequest request = new ByteStreamRequest(this.manager,
                    (Open) streamInitiation);

    // always accept the request
    InBandBytestreamSession session = request.accept();
    session.setCloseBothStreamsEnabled(true);
    return session.getInputStream();
}
项目:EIM    文件:IBBTransferNegotiator.java   
InputStream negotiateIncomingStream(Packet streamInitiation) throws XMPPException {
    // build In-Band Bytestream request
    InBandBytestreamRequest request = new ByteStreamRequest(this.manager,
                    (Open) streamInitiation);

    // always accept the request
    InBandBytestreamSession session = request.accept();
    session.setCloseBothStreamsEnabled(true);
    return session.getInputStream();
}
项目:androidPN-client.    文件:IBBTransferNegotiator.java   
InputStream negotiateIncomingStream(Packet streamInitiation) throws XMPPException {
    // build In-Band Bytestream request
    InBandBytestreamRequest request = new ByteStreamRequest(this.manager,
                    (Open) streamInitiation);

    // always accept the request
    InBandBytestreamSession session = request.accept();
    session.setCloseBothStreamsEnabled(true);
    return session.getInputStream();
}
项目:xmppsupport_v2    文件:IBBTransferNegotiator.java   
public OutputStream createOutgoingStream(String streamID, String initiator,
        String target) throws XMPPException {
    InBandBytestreamSession session = this.manager.establishSession(target,
            streamID);
    session.setCloseBothStreamsEnabled(true);
    return session.getOutputStream();
}
项目:xmppsupport_v2    文件:IBBTransferNegotiator.java   
InputStream negotiateIncomingStream(Packet streamInitiation)
        throws XMPPException {
    // build In-Band Bytestream request
    InBandBytestreamRequest request = new ByteStreamRequest(this.manager,
            (Open) streamInitiation);

    // always accept the request
    InBandBytestreamSession session = request.accept();
    session.setCloseBothStreamsEnabled(true);
    return session.getInputStream();
}
项目:java-bells    文件:IBBTransferNegotiator.java   
InputStream negotiateIncomingStream(Packet streamInitiation) throws XMPPException {
    // build In-Band Bytestream request
    InBandBytestreamRequest request = new ByteStreamRequest(this.manager,
                    (Open) streamInitiation);

    // always accept the request
    InBandBytestreamSession session = request.accept();
    session.setCloseBothStreamsEnabled(true);
    return session.getInputStream();
}
项目:telegraph    文件:IBBTransferNegotiator.java   
InputStream negotiateIncomingStream(Packet streamInitiation) throws XMPPException {
    // build In-Band Bytestream request
    InBandBytestreamRequest request = new ByteStreamRequest(this.manager,
                    (Open) streamInitiation);

    // always accept the request
    InBandBytestreamSession session = request.accept();
    session.setCloseBothStreamsEnabled(true);
    return session.getInputStream();
}
项目:Smack    文件:IBBTransferNegotiator.java   
public OutputStream createOutgoingStream(String streamID, String initiator,
                String target) throws NoResponseException, XMPPErrorException, NotConnectedException {
    InBandBytestreamSession session = this.manager.establishSession(target, streamID);
    session.setCloseBothStreamsEnabled(true);
    return session.getOutputStream();
}
项目:EIM    文件:IBBTransferNegotiator.java   
public OutputStream createOutgoingStream(String streamID, String initiator,
                String target) throws XMPPException {
    InBandBytestreamSession session = this.manager.establishSession(target, streamID);
    session.setCloseBothStreamsEnabled(true);
    return session.getOutputStream();
}
项目:androidPN-client.    文件:IBBTransferNegotiator.java   
public OutputStream createOutgoingStream(String streamID, String initiator,
                String target) throws XMPPException {
    InBandBytestreamSession session = this.manager.establishSession(target, streamID);
    session.setCloseBothStreamsEnabled(true);
    return session.getOutputStream();
}
项目:java-bells    文件:IBBTransferNegotiator.java   
public OutputStream createOutgoingStream(String streamID, String initiator,
                String target) throws XMPPException {
    InBandBytestreamSession session = this.manager.establishSession(target, streamID);
    session.setCloseBothStreamsEnabled(true);
    return session.getOutputStream();
}
项目:telegraph    文件:IBBTransferNegotiator.java   
public OutputStream createOutgoingStream(String streamID, String initiator,
                String target) throws XMPPException {
    InBandBytestreamSession session = this.manager.establishSession(target, streamID);
    session.setCloseBothStreamsEnabled(true);
    return session.getOutputStream();
}