// Path: Android/Blink/library/src/main/java/net/qiujuer/blink/listener/SendListener.java
// public interface SendListener {
//     /**
//      * On sender send the packet call this
//      * On start progress == 0
//      * On end progress ==1
//      *
//      * @param progress Send progress (0~1)
//      */
//     void onSendProgress(float progress);
// }


import net.qiujuer.blink.listener.SendListener;
import java.io.UnsupportedEncodingException;
/*
 * Copyright (C) 2014 Qiujuer <qiujuer@live.cn>
 * WebSite http://www.qiujuer.net
 * Created 04/16/2015
 * Changed 04/19/2015
 * Version 1.0.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.qiujuer.blink.box;



/**
 * String send class
 */
public class StringSendPacket extends ByteSendPacket {
    public StringSendPacket(String entity) throws UnsupportedEncodingException {
        this(entity, null);
    }

// Path: Android/Blink/library/src/main/java/net/qiujuer/blink/listener/SendListener.java
// public interface SendListener {
//     /**
//      * On sender send the packet call this
//      * On start progress == 0
//      * On end progress ==1
//      *
//      * @param progress Send progress (0~1)
//      */
//     void onSendProgress(float progress);
// }


// Path: Android/Blink/library/src/main/java/net/qiujuer/blink/box/StringSendPacket.java
import net.qiujuer.blink.listener.SendListener;
import java.io.UnsupportedEncodingException;

/*
 * Copyright (C) 2014 Qiujuer <qiujuer@live.cn>
 * WebSite http://www.qiujuer.net
 * Created 04/16/2015
 * Changed 04/19/2015
 * Version 1.0.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.qiujuer.blink.box;



/**
 * String send class
 */
public class StringSendPacket extends ByteSendPacket {
    public StringSendPacket(String entity) throws UnsupportedEncodingException {
        this(entity, null);
    }

    public StringSendPacket(String entity, SendListener listener) throws UnsupportedEncodingException {