亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bufferedoutputstream.java

?? 開發j2me 手機程序必須的用到的。文件較小
?? JAVA
字號:
package com.jmobilecore.comm;

import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.io.IOException;

/**
 * The class is J2ME port of Sun's BufferedOutputStream which
 * implements a buffered output stream. By setting up such
 * an output stream, an application can write bytes to the underlying
 * output stream without necessarily causing a call to the underlying
 * system for each byte written.
 *
 * @author Greg Gridin
 */
public class BufferedOutputStream extends ByteArrayOutputStream {

    protected static int DEFAULT_BUFFER_SIZE = 512;

    /**
     * The output stream.
     */
    protected OutputStream out;

    /**
     * Creates a new buffered output stream to write data to the
     * specified underlying output stream with a default 512-byte
     * buffer size.
     *
     * @param out the underlying output stream.
     */
    public BufferedOutputStream(OutputStream out) {
        this(out, DEFAULT_BUFFER_SIZE);
    }

    /**
     * Creates a new buffered output stream to write data to the
     * specified underlying output stream with the specified buffer
     * size.
     *
     * @param out  the underlying output stream.
     * @param size the buffer size.
     * @throws IllegalArgumentException if size <= 0.
     */
    public BufferedOutputStream(OutputStream out, int size) {
        super(size);
        reset();
        this.out = out;
    }

    /**
     * Flush the internal buffer
     */
    private void flushBuffer() throws IOException {
        if (count > 0) {
            out.write(toByteArray(), 0, count);
            reset();
        }
    }

    /**
     * Writes the specified byte to this buffered output stream.
     *
     * @param b the byte to be written.
     */
    public void write(int b) {
        if (count >= buf.length) {
            try {
                flushBuffer();
            } catch (IOException e) {
                throw new RuntimeIOException(e.getMessage());
            }
        }
        buf[count++] = (byte) b;
    }

    /**
     * Writes <code>len</code> bytes from the specified byte array
     * starting at offset <code>off</code> to this buffered output stream.
     * <p/>
     * <p> Ordinarily this method stores bytes from the given array into this
     * stream's buffer, flushing the buffer to the underlying output stream as
     * needed.  If the requested length is at least as large as this stream's
     * buffer, however, then this method will flush the buffer and write the
     * bytes directly to the underlying output stream.  Thus redundant
     * <code>BufferedOutputStream</code>s will not copy data unnecessarily.
     *
     * @param b   the data.
     * @param off the start offset in the data.
     * @param len the number of bytes to write.
     */
    public void write(byte b[], int off, int len) {
        if (len >= buf.length) {
            /* If the request length exceeds the size of the output buffer,
                   flush the output buffer and then write the data directly.
                   In this way buffered streams will cascade harmlessly. */
            try {
                flushBuffer();
                out.write(b, off, len);
            } catch (IOException e) {
                throw new RuntimeIOException(e.getMessage());
            }
            return;
        }
        if (len > buf.length - count) {
            try {
                flushBuffer();
            } catch (IOException e) {
                throw new RuntimeIOException(e.getMessage());
            }
        }
        System.arraycopy(b, off, buf, count, len);
        count += len;
    }

    /**
     * Flushes this buffered output stream. This forces any buffered
     * output bytes to be written out to the underlying output stream.
     *
     * @throws IOException if an I/O error occurs.
     */
    public void flush() throws IOException {
        flushBuffer();
        out.flush();
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美女在线观看视频一区二区| 日韩女优av电影在线观看| 青青草国产成人av片免费| 亚洲精品视频自拍| 亚洲欧美色图小说| 亚洲欧美日韩国产成人精品影院| 亚洲三级久久久| 亚洲欧美在线观看| 亚洲人一二三区| 亚洲综合一区二区精品导航| 一区二区免费在线播放| 亚洲成人在线网站| 人人狠狠综合久久亚洲| 久草在线在线精品观看| 国产一区二区三区电影在线观看| 久久国产欧美日韩精品| 国产在线视频精品一区| av成人免费在线观看| 在线国产亚洲欧美| 欧美一区二区久久| 国产亚洲一二三区| 尤物在线观看一区| 久久国产精品一区二区| 国产99久久久国产精品免费看 | 久久精品人人做| 亚洲欧美一区二区视频| 三级在线观看一区二区| 国产在线播放一区| 日本久久一区二区三区| 欧美一卡二卡在线观看| 日本一区二区三区高清不卡| 亚洲一二三区不卡| 久久成人免费日本黄色| 一本色道久久加勒比精品| 69p69国产精品| 亚洲欧洲另类国产综合| 男人的天堂亚洲一区| 99在线精品观看| 欧美精品vⅰdeose4hd| 欧美激情中文字幕一区二区| 午夜精品久久久久久久久 | 国产精品美女久久久久高潮| 亚洲高清不卡在线| 国产91精品在线观看| 欧美精品在线观看一区二区| 亚洲国产精品精华液ab| 日韩福利电影在线观看| 91成人免费在线| 国产精品视频看| 美女www一区二区| 欧洲av一区二区嗯嗯嗯啊| 国产精品午夜春色av| 日本va欧美va精品| 欧美日韩视频专区在线播放| 《视频一区视频二区| 国内精品在线播放| 日韩欧美国产系列| 日本在线不卡视频| 欧美三电影在线| 一区二区在线免费| 91视频在线观看免费| 欧美激情在线看| 国产精品18久久久久久久久| 日韩手机在线导航| 午夜在线成人av| 欧美日韩一本到| 午夜久久福利影院| 欧美精品久久99| 日日噜噜夜夜狠狠视频欧美人| 91麻豆视频网站| 亚洲美女少妇撒尿| 91在线视频网址| 亚洲人成小说网站色在线 | 欧美女孩性生活视频| 亚洲精品欧美二区三区中文字幕| av在线播放一区二区三区| 久久精品视频网| 国产99精品视频| 国产精品第四页| 欧美专区亚洲专区| 午夜精品一区二区三区免费视频| 欧美三级日韩在线| 日本成人在线一区| 精品国产乱码久久久久久1区2区 | 69堂精品视频| 久久草av在线| 日本一区二区视频在线| 99视频一区二区| 一区二区三区欧美在线观看| 欧美日韩视频不卡| 青青青爽久久午夜综合久久午夜| 91精品国产综合久久久久 | 亚洲欧美日韩中文播放| 欧美中文字幕一二三区视频| 亚洲高清不卡在线| 久久人人超碰精品| 91原创在线视频| 亚洲18色成人| 国产欧美日韩精品一区| 欧洲国内综合视频| 国内精品在线播放| 一区二区视频免费在线观看| 日韩亚洲欧美综合| 成人黄色综合网站| 日日摸夜夜添夜夜添国产精品| 久久婷婷综合激情| 色综合色综合色综合| 久久99国产精品麻豆| 日韩美女啊v在线免费观看| 欧美色中文字幕| 国产成人av一区二区三区在线| 曰韩精品一区二区| 欧美激情一区三区| 欧美一区二区黄| 色狠狠桃花综合| 国产美女视频91| 日韩精品三区四区| 亚洲免费视频中文字幕| 337p粉嫩大胆噜噜噜噜噜91av| 在线日韩av片| jvid福利写真一区二区三区| 日日夜夜精品视频天天综合网| 国产精品久久久久久久久免费丝袜 | 日韩一区二区三区免费看| 99v久久综合狠狠综合久久| 伦理电影国产精品| 五月婷婷久久丁香| 有码一区二区三区| 国产精品不卡一区| 久久综合九色综合久久久精品综合| 欧美性猛片aaaaaaa做受| 成人av在线资源网站| 国产高清精品久久久久| 免费观看在线综合色| 亚洲国产综合人成综合网站| 一色桃子久久精品亚洲| 久久久99精品免费观看不卡| 日韩欧美国产综合| 欧美人狂配大交3d怪物一区| 色激情天天射综合网| av电影天堂一区二区在线观看| 国产一区二区三区| 国产麻豆成人传媒免费观看| 美女一区二区三区| 美女一区二区久久| 久久精品久久精品| 久久99久国产精品黄毛片色诱| 日本中文字幕一区二区有限公司| 亚洲成人激情自拍| 午夜久久电影网| 日本va欧美va精品| 美女一区二区在线观看| 老汉av免费一区二区三区| 日本v片在线高清不卡在线观看| 三级久久三级久久久| 蜜臀国产一区二区三区在线播放 | 亚洲色图色小说| 亚洲欧洲一区二区三区| 亚洲欧洲另类国产综合| 亚洲三级视频在线观看| 亚洲国产日日夜夜| 亚洲无线码一区二区三区| 日韩经典一区二区| 麻豆国产欧美日韩综合精品二区| 麻豆精品视频在线观看视频| 国产一区二区三区最好精华液| 国产精品一区二区三区乱码| 成人91在线观看| 日本韩国精品在线| 7777精品伊人久久久大香线蕉| 欧美不卡123| 国产精品丝袜91| 一区二区高清在线| 美女任你摸久久| 不卡一区在线观看| 欧美视频一区二区三区在线观看 | 免费一级片91| 成人免费三级在线| 欧美丝袜丝交足nylons图片| 日韩女优制服丝袜电影| 国产精品麻豆久久久| 亚洲在线视频免费观看| 黑人巨大精品欧美黑白配亚洲 | 午夜久久久影院| 国产精品1024| 欧美日韩高清一区二区三区| 欧美精品一区二区三区久久久| 国产精品久久久久四虎| 美国毛片一区二区| 日本精品裸体写真集在线观看| 日韩欧美国产三级电影视频| 亚洲柠檬福利资源导航| 国产一区二区久久| 欧美精品一二三区| 国产精品人人做人人爽人人添| 日韩成人dvd| 欧美影院精品一区| 国产精品美女久久久久aⅴ | 日韩av一区二区在线影视| 成人精品视频一区二区三区 |