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

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

?? ledatainputstream.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
字號:
/******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials  * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.internal.image;import java.io.*;final class LEDataInputStream extends InputStream {	int position;	InputStream in;	/**	 * The byte array containing the bytes to read.	 */	protected byte[] buf;		/**	 * The current position within the byte array <code>buf</code>. A value	 * equal to buf.length indicates no bytes available.  A value of	 * 0 indicates the buffer is full.	 */	protected int pos;		public LEDataInputStream(InputStream input) {		this(input, 512);	}		public LEDataInputStream(InputStream input, int bufferSize) {		this.in = input;		if (bufferSize > 0) {			buf = new byte[bufferSize];			pos = bufferSize;		} 		else throw new IllegalArgumentException();	}		public void close() throws IOException {		buf = null;		if (in != null) {			in.close();			in = null;		}	}		/**	 * Answer how many bytes were read.	 */	public int getPosition() {		return position;	}		/**	 * Answers how many bytes are available for reading without blocking	 */	public int available() throws IOException {		if (buf == null) throw new IOException();		return (buf.length - pos) + in.available();	}		/**	 * Answer the next byte of the input stream.	 */	public int read() throws IOException {		if (buf == null) throw new IOException();		position++;		if (pos < buf.length) return (buf[pos++] & 0xFF);		return in.read();	}		/**	 * Don't imitate the JDK behaviour of reading a random number	 * of bytes when you can actually read them all.	 */	public int read(byte b[], int off, int len) throws IOException {		int result;		int left = len;		result = readData(b, off, len);		while (true) {			if (result == -1) return -1;			position += result;			if (result == left) return len;			left -= result;			off += result;			result = readData(b, off, left);		}	}		/** 	 * Reads at most <code>length</code> bytes from this LEDataInputStream and  	 * stores them in byte array <code>buffer</code> starting at <code>offset</code>. 	 * <p> 	 * Answer the number of bytes actually read or -1 if no bytes were read and  	 * end of stream was encountered.  This implementation reads bytes from  	 * the pushback buffer first, then the target stream if more bytes are required 	 * to satisfy <code>count</code>.	 * </p>	 * @param buffer the byte array in which to store the read bytes.	 * @param offset the offset in <code>buffer</code> to store the read bytes.	 * @param length the maximum number of bytes to store in <code>buffer</code>.	 *	 * @return int the number of bytes actually read or -1 if end of stream.	 *	 * @exception java.io.IOException if an IOException occurs.	 */	private int readData(byte[] buffer, int offset, int length) throws IOException {		if (buf == null) throw new IOException();		if (offset < 0 || offset > buffer.length ||  		 	length < 0 || (length > buffer.length - offset)) {	 		throw new ArrayIndexOutOfBoundsException();		 	}						int cacheCopied = 0;		int newOffset = offset;			// Are there pushback bytes available?		int available = buf.length - pos;		if (available > 0) {			cacheCopied = (available >= length) ? length : available;			System.arraycopy(buf, pos, buffer, newOffset, cacheCopied);			newOffset += cacheCopied;			pos += cacheCopied;		}			// Have we copied enough?		if (cacheCopied == length) return length;		int inCopied = in.read(buffer, newOffset, length - cacheCopied);		if (inCopied > 0) return inCopied + cacheCopied;		if (cacheCopied == 0) return inCopied;		return cacheCopied;	}		/**	 * Answer an integer comprised of the next	 * four bytes of the input stream.	 */	public int readInt() throws IOException {		byte[] buf = new byte[4];		read(buf);		return ((((((buf[3] & 0xFF) << 8) | 			(buf[2] & 0xFF)) << 8) | 			(buf[1] & 0xFF)) << 8) | 			(buf[0] & 0xFF);	}		/**	 * Answer a short comprised of the next	 * two bytes of the input stream.	 */	public short readShort() throws IOException {		byte[] buf = new byte[2];		read(buf);		return (short)(((buf[1] & 0xFF) << 8) | (buf[0] & 0xFF));	}		/**	 * Push back the entire content of the given buffer <code>b</code>.	 * <p>	 * The bytes are pushed so that they would be read back b[0], b[1], etc. 	 * If the push back buffer cannot handle the bytes copied from <code>b</code>, 	 * an IOException will be thrown and no byte will be pushed back.	 * </p>	 * 	 * @param b the byte array containing bytes to push back into the stream	 *	 * @exception 	java.io.IOException if the pushback buffer is too small	 */	public void unread(byte[] b) throws IOException {		int length = b.length;		if (length > pos) throw new IOException();		position -= length;		pos -= length;		System.arraycopy(b, 0, buf, pos, length);	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲电影一区二区三区| 亚洲综合在线五月| 欧美一区二区三区免费观看视频| 91在线观看视频| 成人av电影观看| 91同城在线观看| 欧美日韩精品欧美日韩精品| 欧美日韩一区二区在线观看视频 | 国产中文字幕精品| 国产一区二区三区免费看 | 婷婷夜色潮精品综合在线| 亚洲柠檬福利资源导航| 一区二区三区四区蜜桃 | 精品粉嫩aⅴ一区二区三区四区| 欧美xxx久久| 国产日韩精品一区二区三区在线| 日本一区二区成人| 一区二区激情小说| 蜜桃av噜噜一区| 99这里只有久久精品视频| 在线视频国内一区二区| 在线电影国产精品| 国产欧美日韩综合精品一区二区| 国产精品久久国产精麻豆99网站| 亚洲国产成人va在线观看天堂| 日韩avvvv在线播放| 成人亚洲一区二区一| 欧美亚洲国产bt| 久久久亚洲精品一区二区三区| 亚洲色图制服丝袜| 狠狠狠色丁香婷婷综合激情| 91网站在线播放| 久久综合九色综合97婷婷女人 | 午夜精品久久久久久久久久久| 麻豆精品一二三| 一本色道亚洲精品aⅴ| 欧美一二三四在线| 亚洲色图都市小说| 久久不见久久见中文字幕免费| caoporm超碰国产精品| 欧美一级国产精品| 一区二区三区中文字幕精品精品| 毛片av一区二区| 欧美视频精品在线| 国产精品区一区二区三区| 亚洲专区一二三| 99re8在线精品视频免费播放| 91精品国产综合久久久久久久| 日本一区二区免费在线观看视频| 亚洲成人午夜影院| 99久久免费视频.com| 久久综合久久综合九色| 日产欧产美韩系列久久99| 色噜噜狠狠成人中文综合| 国产农村妇女毛片精品久久麻豆| 日本va欧美va欧美va精品| 色噜噜狠狠一区二区三区果冻| 中文字幕欧美激情| 国产精品一区二区不卡| 欧美电视剧免费全集观看 | 日韩精品一区国产麻豆| 一区二区三区自拍| 色欲综合视频天天天| 国产精品国产三级国产a| 国产成人8x视频一区二区| 精品乱码亚洲一区二区不卡| 五月婷婷久久丁香| 在线91免费看| 奇米一区二区三区| 欧美一区二区黄色| 男人的天堂久久精品| 欧美久久久久久久久久| 日韩精品电影在线| 91 com成人网| 日本在线不卡一区| 日韩精品专区在线影院重磅| 麻豆免费精品视频| 久久久亚洲精华液精华液精华液| 国产主播一区二区| 国产精品五月天| www.欧美亚洲| 一区二区三区日韩欧美| 欧美视频精品在线| 美女诱惑一区二区| 国产无一区二区| 91免费视频大全| 午夜av一区二区| xf在线a精品一区二区视频网站| 国产乱子伦视频一区二区三区| 国产色一区二区| 99re热视频精品| 日韩不卡在线观看日韩不卡视频| 欧美人狂配大交3d怪物一区| 免费av网站大全久久| 久久久久久一二三区| 99精品一区二区| 日韩国产欧美三级| 久久久噜噜噜久久中文字幕色伊伊| 成人综合婷婷国产精品久久蜜臀| 亚洲私人影院在线观看| 欧美一区二区网站| 国产成人在线网站| 一二三四社区欧美黄| 精品成人在线观看| 色拍拍在线精品视频8848| 久久国产精品99久久久久久老狼| 欧美激情自拍偷拍| 欧美日韩一区二区欧美激情| 国内精品在线播放| 亚洲电影第三页| 精品国产3级a| 欧美日韩一区二区三区免费看| 国内精品国产成人| 亚洲一区二区三区四区在线| 精品免费日韩av| 欧美日韩不卡一区二区| 成人丝袜高跟foot| 青青草精品视频| 一区二区三区日韩精品视频| 久久久五月婷婷| 日韩三级精品电影久久久| 91麻豆自制传媒国产之光| 国产中文字幕一区| 久久精品99国产精品| 亚洲一区二区中文在线| 国产精品麻豆视频| 久久精品夜色噜噜亚洲aⅴ| 欧美丝袜丝交足nylons| 成a人片亚洲日本久久| 激情文学综合丁香| 日韩国产高清影视| 一区二区三区蜜桃网| 中文字幕精品综合| 国产欧美综合在线观看第十页| 7777精品久久久大香线蕉| 色网站国产精品| 9l国产精品久久久久麻豆| 成人三级伦理片| 国产一区二区三区黄视频 | 亚洲精品国产高清久久伦理二区| 精品久久久久久久久久久久久久久| 欧美少妇性性性| 欧美亚洲免费在线一区| 91国在线观看| 色婷婷久久久综合中文字幕| 97精品久久久久中文字幕| 99久久99久久精品免费看蜜桃| 不卡一区在线观看| www.欧美日韩| 一本一道久久a久久精品| 91社区在线播放| 欧美性猛交一区二区三区精品| 色婷婷一区二区三区四区| 91麻豆视频网站| 欧美午夜在线观看| 欧美精品久久天天躁| 欧美一区二区三区系列电影| 日韩欧美一卡二卡| 久久精品欧美一区二区三区麻豆 | 福利一区二区在线观看| 成人黄页毛片网站| 在线观看国产一区二区| 欧美日韩高清一区二区不卡| 日韩一级视频免费观看在线| 精品国产露脸精彩对白| 亚洲精品一区二区在线观看| 国产女同性恋一区二区| 综合久久给合久久狠狠狠97色 | 国产精品毛片无遮挡高清| 亚洲免费看黄网站| 亚洲成a天堂v人片| 毛片av一区二区| 成人午夜大片免费观看| 欧美又粗又大又爽| 日韩欧美自拍偷拍| 国产精品污网站| 亚洲国产色一区| 国产成人在线视频网址| 色呦呦网站一区| 精品国产电影一区二区| 国产精品国产三级国产| 午夜在线电影亚洲一区| 国产黄色精品视频| 欧洲av在线精品| 国产亚洲1区2区3区| 亚洲成人动漫一区| 成人性生交大片免费看在线播放| 欧美在线观看视频一区二区 | 欧美色综合网站| 久久综合久久久久88| 亚洲卡通欧美制服中文| 美腿丝袜亚洲三区| 色婷婷亚洲精品| 久久综合狠狠综合久久激情 | 一级精品视频在线观看宜春院| 韩国成人福利片在线播放| 欧美自拍丝袜亚洲| 国产精品久线观看视频| 久久99久久久久| 欧美精品xxxxbbbb|