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

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

?? blob.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
字號:
/* Copyright (C) 2002-2004 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as  published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL  as it is applied to this software. View the full text of the  exception in file EXCEPTIONS-CONNECTOR-J in the directory of this  software distribution. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package com.mysql.jdbc;import java.io.ByteArrayInputStream;import java.io.IOException;import java.io.OutputStream;import java.sql.SQLException;/** * The representation (mapping) in the JavaTM programming language of an SQL * BLOB value. An SQL BLOB is a built-in type that stores a Binary Large Object * as a column value in a row of a database table. The driver implements Blob * using an SQL locator(BLOB), which means that a Blob object contains a logical * pointer to the SQL BLOB data rather than the data itself. A Blob object is * valid for the duration of the transaction in which is was created. Methods in * the interfaces ResultSet, CallableStatement, and PreparedStatement, such as * getBlob and setBlob allow a programmer to access an SQL BLOB value. The Blob * interface provides methods for getting the length of an SQL BLOB (Binary * Large Object) value, for materializing a BLOB value on the client, and for * determining the position of a pattern of bytes within a BLOB value. This * class is new in the JDBC 2.0 API. *  * @author Mark Matthews * @version $Id: Blob.java 4489 2005-11-01 00:43:01Z mmatthews $ */public class Blob implements java.sql.Blob, OutputStreamWatcher {	//	// This is a real brain-dead implementation of BLOB. Once I add	// streamability to the I/O for MySQL this will be more efficiently	// implemented (except for the position() method, ugh).	//	/** The binary data that makes up this BLOB */	private byte[] binaryData = null;	/**	 * Creates a BLOB encapsulating the given binary data	 * 	 * @param data	 *            DOCUMENT ME!	 */	Blob(byte[] data) {		setBinaryData(data);	}	/**	 * Creates an updatable BLOB that can update in-place (not implemented yet).	 * 	 * @param data	 *            DOCUMENT ME!	 * @param creatorResultSetToSet	 *            DOCUMENT ME!	 * @param columnIndexToSet	 *            DOCUMENT ME!	 */	Blob(byte[] data, ResultSet creatorResultSetToSet, int columnIndexToSet) {		setBinaryData(data);	}	private byte[] getBinaryData() {		return this.binaryData;	}	/**	 * Retrieves the BLOB designated by this Blob instance as a stream.	 * 	 * @return this BLOB represented as a binary stream of bytes.	 * 	 * @throws SQLException	 *             if a database error occurs	 */	public java.io.InputStream getBinaryStream() throws SQLException {		return new ByteArrayInputStream(getBinaryData());	}	/**	 * Returns as an array of bytes, part or all of the BLOB value that this	 * Blob object designates.	 * 	 * @param pos	 *            where to start the part of the BLOB	 * @param length	 *            the length of the part of the BLOB you want returned.	 * 	 * @return the bytes stored in the blob starting at position	 *         <code>pos</code> and having a length of <code>length</code>.	 * 	 * @throws SQLException	 *             if a database error occurs	 */	public byte[] getBytes(long pos, int length) throws SQLException {		if (pos < 1) {			throw SQLError.createSQLException(Messages.getString("Blob.2"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		byte[] newData = new byte[length];		System.arraycopy(getBinaryData(), (int) (pos - 1), newData, 0, length);		return newData;	}	/**	 * Returns the number of bytes in the BLOB value designated by this Blob	 * object.	 * 	 * @return the length of this blob	 * 	 * @throws SQLException	 *             if a database error occurs	 */	public long length() throws SQLException {		return getBinaryData().length;	}	/**	 * @see java.sql.Blob#position(byte[], long)	 */	public long position(byte[] pattern, long start) throws SQLException {		throw SQLError.createSQLException("Not implemented"); //$NON-NLS-1$	}	/**	 * Finds the position of the given pattern in this BLOB.	 * 	 * @param pattern	 *            the pattern to find	 * @param start	 *            where to start finding the pattern	 * 	 * @return the position where the pattern is found in the BLOB, -1 if not	 *         found	 * 	 * @throws SQLException	 *             if a database error occurs	 */	public long position(java.sql.Blob pattern, long start) throws SQLException {		return position(pattern.getBytes(0, (int) pattern.length()), start);	}	private void setBinaryData(byte[] newBinaryData) {		this.binaryData = newBinaryData;	}	/**	 * @see Blob#setBinaryStream(long)	 */	public OutputStream setBinaryStream(long indexToWriteAt)			throws SQLException {		if (indexToWriteAt < 1) {			throw SQLError.createSQLException(Messages.getString("Blob.0"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		WatchableOutputStream bytesOut = new WatchableOutputStream();		bytesOut.setWatcher(this);		if (indexToWriteAt > 0) {			bytesOut.write(this.binaryData, 0, (int) (indexToWriteAt - 1));		}		return bytesOut;	}	/**	 * @see Blob#setBytes(long, byte[])	 */	public int setBytes(long writeAt, byte[] bytes) throws SQLException {		return setBytes(writeAt, bytes, 0, bytes.length);	}	/**	 * @see Blob#setBytes(long, byte[], int, int)	 */	public int setBytes(long writeAt, byte[] bytes, int offset, int length)			throws SQLException {		OutputStream bytesOut = setBinaryStream(writeAt);		try {			bytesOut.write(bytes, offset, length);		} catch (IOException ioEx) {			throw SQLError.createSQLException(Messages.getString("Blob.1"), //$NON-NLS-1$					SQLError.SQL_STATE_GENERAL_ERROR);		} finally {			try {				bytesOut.close();			} catch (IOException doNothing) {				; // do nothing			}		}		return length;	}	/**	 * @see com.mysql.jdbc.OutputStreamWatcher#streamClosed(byte[])	 */	public void streamClosed(byte[] byteData) {		this.binaryData = byteData;	}	/**	 * @see com.mysql.jdbc.OutputStreamWatcher#streamClosed(byte[])	 */	public void streamClosed(WatchableOutputStream out) {		int streamSize = out.size();		if (streamSize < this.binaryData.length) {			out.write(this.binaryData, streamSize, this.binaryData.length					- streamSize);		}		this.binaryData = out.toByteArray();	}	/**	 * @see Blob#truncate(long)	 */	public void truncate(long arg0) throws SQLException {		throw new NotImplemented();	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
性做久久久久久免费观看| 成人激情综合网站| 亚洲精品视频一区| 久久精品视频网| 精品日韩av一区二区| 日韩欧美精品在线视频| 日韩精品中文字幕一区二区三区| 欧美日韩国产免费一区二区| 欧美三级韩国三级日本一级| 欧美绝品在线观看成人午夜影视| 欧美在线你懂的| 欧美日本免费一区二区三区| 欧美一区二区三区精品| 精品少妇一区二区三区| 欧美激情一区三区| 亚洲女同ⅹxx女同tv| 一区二区三区 在线观看视频| 亚洲一区在线观看视频| 亚洲午夜精品网| 久久狠狠亚洲综合| 国产老妇另类xxxxx| 成人av影视在线观看| 91激情五月电影| 欧美一区二区黄| 久久久久久久国产精品影院| 中文字幕一区二区三区不卡在线 | 久久99深爱久久99精品| 狠狠v欧美v日韩v亚洲ⅴ| 成人激情免费网站| 欧美无人高清视频在线观看| 日韩免费电影一区| 国产精品美女久久久久久久| 亚洲成a人v欧美综合天堂| 激情欧美一区二区三区在线观看| 欧美色倩网站大全免费| 91精品国产高清一区二区三区| 久久噜噜亚洲综合| 亚洲综合视频在线观看| 精品一区二区三区的国产在线播放| 国产.欧美.日韩| 欧美群妇大交群中文字幕| 国产欧美一区二区精品秋霞影院| 亚洲一二三四区不卡| 国产综合久久久久影院| 欧美三级日韩三级国产三级| 日本一区二区免费在线观看视频| 亚洲成人精品一区| 福利电影一区二区三区| 日韩一级高清毛片| 亚洲人成亚洲人成在线观看图片 | 日韩精品一区二区三区在线播放| 国产精品美女久久久久av爽李琼| 日韩激情一二三区| 一本一本大道香蕉久在线精品| 精品88久久久久88久久久| 亚洲香蕉伊在人在线观| 99精品欧美一区二区三区综合在线| 91精品国产综合久久福利| 亚洲特黄一级片| 成人激情免费电影网址| 精品国产一区二区三区久久久蜜月 | 一本一道久久a久久精品综合蜜臀| 欧美成人精品福利| 婷婷久久综合九色综合绿巨人| 99久久婷婷国产综合精品| 久久免费精品国产久精品久久久久| 午夜精品久久久久久久| 欧美午夜免费电影| 亚洲人成网站精品片在线观看| 国产不卡在线播放| 久久奇米777| 国产自产高清不卡| 精品国产一区二区三区久久影院| 免费国产亚洲视频| 精品久久人人做人人爽| 麻豆视频观看网址久久| 日韩亚洲欧美在线| 久久av中文字幕片| 久久日韩粉嫩一区二区三区| 国内精品伊人久久久久av影院| 日韩精品在线一区二区| 美女网站色91| 久久久久久久av麻豆果冻| 国产一区二区不卡在线| 国产欧美日韩在线| 成人av影视在线观看| 一区二区三区视频在线看| 欧美专区日韩专区| 日韩国产高清影视| 欧美一级黄色录像| 国产一区在线精品| 国产精品日日摸夜夜摸av| 99免费精品在线观看| 亚洲婷婷综合久久一本伊一区| 一本色道久久加勒比精品| 一区二区不卡在线播放| 欧美一区二区三区四区在线观看| 精品一区二区三区香蕉蜜桃| 久久欧美一区二区| 91老司机福利 在线| 五月综合激情婷婷六月色窝| 日韩写真欧美这视频| 国产91高潮流白浆在线麻豆| 1024成人网| 欧美精品1区2区3区| 国产一区二区三区四区在线观看| 国产精品色呦呦| 欧美片在线播放| 国产成人丝袜美腿| 亚洲一区二区三区不卡国产欧美| 日韩你懂的在线播放| 99免费精品在线观看| 日韩成人一区二区| 亚洲欧洲日韩综合一区二区| 欧美一区二区在线看| 不卡区在线中文字幕| 老司机免费视频一区二区| 中文字幕一区二区三区不卡在线 | 91网站在线播放| 日本欧美久久久久免费播放网| 国产欧美日产一区| 欧美日韩视频在线第一区| 国产成人午夜视频| 首页亚洲欧美制服丝腿| 欧美激情一二三区| 日韩欧美一区二区在线视频| 色婷婷久久久久swag精品| 国产一区二区三区在线观看精品| 天天色图综合网| 久久精品欧美一区二区三区麻豆| 欧美日韩一本到| 99久久精品免费观看| 国产精品99久久久久久有的能看| 亚洲福利一区二区三区| 国产精品成人网| 国产欧美一区二区精品秋霞影院| 欧美电影免费观看高清完整版在 | 久久午夜免费电影| 在线不卡免费av| 欧美在线看片a免费观看| 成人永久aaa| 国产高清久久久| 国产精品18久久久久久vr| 免费精品99久久国产综合精品| 午夜免费久久看| 亚洲一二三四区| 亚洲综合一区二区精品导航| 亚洲欧美日韩国产手机在线| 中文在线资源观看网站视频免费不卡| 日韩精品影音先锋| 91精品国产综合久久国产大片| 欧美日韩国产精选| 欧美在线观看一二区| 欧美日韩国产中文| 欧美精品日韩综合在线| 欧美精选一区二区| 欧美精品一二三区| 9191精品国产综合久久久久久| 欧美日韩国产高清一区二区三区| 欧美吻胸吃奶大尺度电影| 欧美美女视频在线观看| 精品美女被调教视频大全网站| 日韩午夜中文字幕| 久久―日本道色综合久久| 国产欧美日本一区视频| 亚洲色图欧洲色图婷婷| 亚洲美女视频在线观看| 亚洲一区二区在线播放相泽| 亚洲一区中文日韩| 日韩专区中文字幕一区二区| 免费成人深夜小野草| 国产精品亚洲视频| 99精品国产91久久久久久| 91电影在线观看| 日韩一区二区在线免费观看| 精品国产一区a| 国产精品国产三级国产普通话蜜臀| 国产精品久久久久久亚洲伦| 一区二区成人在线| 麻豆精品在线观看| 成人av在线播放网站| 欧美三级电影精品| 国产亚洲一二三区| 一区二区久久久| 麻豆精品视频在线观看| 高清久久久久久| 欧美日韩国产色站一区二区三区| 2022国产精品视频| 亚洲激情图片小说视频| 精品伊人久久久久7777人| 9久草视频在线视频精品| 欧美日韩免费一区二区三区| 久久夜色精品一区| 亚洲国产视频网站| 国产精品12区| 日韩精品专区在线影院观看| 亚洲丝袜美腿综合| 狠狠色丁香婷婷综合久久片| 日本久久电影网| 久久精子c满五个校花|