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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? clob.java

?? mysql jdbc驅(qū)動(dòng)程序 mysql jdbc驅(qū)動(dòng)程序 mysql jdbc驅(qū)動(dòng)程序 mysql jdbc驅(qū)動(dòng)程序
?? JAVA
字號(hào):
/* 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.InputStream;import java.io.OutputStream;import java.io.Reader;import java.io.StringReader;import java.io.Writer;import java.sql.SQLException;/** * Simplistic implementation of java.sql.Clob for MySQL Connector/J *  * @author Mark Matthews * @version $Id: Clob.java 5417 2006-06-20 21:33:56Z mmatthews $ */public class Clob implements java.sql.Clob, OutputStreamWatcher, WriterWatcher {	private String charData;	Clob(String charDataInit) {		this.charData = charDataInit;	}	/**	 * @see java.sql.Clob#getAsciiStream()	 */	public InputStream getAsciiStream() throws SQLException {		if (this.charData != null) {			return new ByteArrayInputStream(this.charData.getBytes());		}		return null;	}	/**	 * @see java.sql.Clob#getCharacterStream()	 */	public Reader getCharacterStream() throws SQLException {		if (this.charData != null) {			return new StringReader(this.charData);		}		return null;	}	/**	 * @see java.sql.Clob#getSubString(long, int)	 */	public String getSubString(long startPos, int length) throws SQLException {		if (startPos < 1) {			throw SQLError.createSQLException(Messages.getString("Clob.6"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		int adjustedStartPos = (int)startPos - 1;		int adjustedEndIndex = adjustedStartPos + length;				if (this.charData != null) {			if (adjustedEndIndex > this.charData.length()) {				throw SQLError.createSQLException(Messages.getString("Clob.7"), //$NON-NLS-1$						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}			return this.charData.substring(adjustedStartPos, 					adjustedEndIndex);		}		return null;	}	/**	 * @see java.sql.Clob#length()	 */	public long length() throws SQLException {		if (this.charData != null) {			return this.charData.length();		}		return 0;	}	/**	 * @see java.sql.Clob#position(Clob, long)	 */	public long position(java.sql.Clob arg0, long arg1) throws SQLException {		return position(arg0.getSubString(0L, (int) arg0.length()), arg1);	}	/**	 * @see java.sql.Clob#position(String, long)	 */	public long position(String stringToFind, long startPos)			throws SQLException {		if (startPos < 1) {			throw SQLError.createSQLException(					Messages.getString("Clob.8") //$NON-NLS-1$							+ startPos + Messages.getString("Clob.9"), SQLError.SQL_STATE_ILLEGAL_ARGUMENT); //$NON-NLS-1$		}		if (this.charData != null) {			if ((startPos - 1) > this.charData.length()) {				throw SQLError.createSQLException(Messages.getString("Clob.10"), //$NON-NLS-1$						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}			int pos = this.charData.indexOf(stringToFind, (int) (startPos - 1));			return (pos == -1) ? (-1) : (pos + 1);		}		return -1;	}	/**	 * @see java.sql.Clob#setAsciiStream(long)	 */	public OutputStream setAsciiStream(long indexToWriteAt) throws SQLException {		if (indexToWriteAt < 1) {			throw SQLError.createSQLException(Messages.getString("Clob.0"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		WatchableOutputStream bytesOut = new WatchableOutputStream();		bytesOut.setWatcher(this);		if (indexToWriteAt > 0) {			bytesOut.write(this.charData.getBytes(), 0,					(int) (indexToWriteAt - 1));		}		return bytesOut;	}	/**	 * @see java.sql.Clob#setCharacterStream(long)	 */	public Writer setCharacterStream(long indexToWriteAt) throws SQLException {		if (indexToWriteAt < 1) {			throw SQLError.createSQLException(Messages.getString("Clob.1"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		WatchableWriter writer = new WatchableWriter();		writer.setWatcher(this);		//		// Don't call write() if nothing to write...		//		if (indexToWriteAt > 1) {			writer.write(this.charData, 0, (int) (indexToWriteAt - 1));		}		return writer;	}	/**	 * @see java.sql.Clob#setString(long, String)	 */	public int setString(long pos, String str) throws SQLException {		if (pos < 1) {			throw SQLError.createSQLException(Messages.getString("Clob.2"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		if (str == null) {			throw SQLError.createSQLException(Messages.getString("Clob.3"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		StringBuffer charBuf = new StringBuffer(this.charData);		pos--;		int strLength = str.length();		charBuf.replace((int) pos, (int) (pos + strLength), str);		this.charData = charBuf.toString();		return strLength;	}	/**	 * @see java.sql.Clob#setString(long, String, int, int)	 */	public int setString(long pos, String str, int offset, int len)			throws SQLException {		if (pos < 1) {			throw SQLError.createSQLException(Messages.getString("Clob.4"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		if (str == null) {			throw SQLError.createSQLException(Messages.getString("Clob.5"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		StringBuffer charBuf = new StringBuffer(this.charData);		pos--;		String replaceString = str.substring(offset, len);		charBuf.replace((int) pos, (int) (pos + replaceString.length()),				replaceString);		this.charData = charBuf.toString();		return len;	}	/**	 * @see com.mysql.jdbc.OutputStreamWatcher#streamClosed(byte[])	 */	public void streamClosed(WatchableOutputStream out) {		int streamSize = out.size();		if (streamSize < this.charData.length()) {			try {				out.write(StringUtils						.getBytes(this.charData, null, null, false, null),						streamSize, this.charData.length() - streamSize);			} catch (SQLException ex) {				//			}		}		this.charData = StringUtils.toAsciiString(out.toByteArray());	}	/**	 * @see java.sql.Clob#truncate(long)	 */	public void truncate(long length) throws SQLException {		if (length > this.charData.length()) {			throw SQLError.createSQLException(					Messages.getString("Clob.11") //$NON-NLS-1$							+ this.charData.length()							+ Messages.getString("Clob.12") + length + Messages.getString("Clob.13")); //$NON-NLS-1$ //$NON-NLS-2$		}		this.charData = this.charData.substring(0, (int) length);	}	/**	 * @see com.mysql.jdbc.WriterWatcher#writerClosed(char[])	 */	public void writerClosed(char[] charDataBeingWritten) {		this.charData = new String(charDataBeingWritten);	}	/**	 * @see com.mysql.jdbc.WriterWatcher#writerClosed(char[])	 */	public void writerClosed(WatchableWriter out) {		int dataLength = out.size();		if (dataLength < this.charData.length()) {			out.write(this.charData, dataLength, this.charData.length()					- dataLength);		}		this.charData = out.toString();	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区和二区| 精品国产91洋老外米糕| 一区精品在线播放| 一个色在线综合| 日产欧产美韩系列久久99| 国产一区二区三区香蕉| 99re这里只有精品视频首页| 国产二区国产一区在线观看| 国产精品资源网| 91丨九色porny丨蝌蚪| 欧美日本国产一区| 日韩一区二区不卡| 日韩欧美国产三级电影视频| 久久综合久久综合亚洲| 亚洲三级在线免费| 丝袜诱惑亚洲看片| 国产综合久久久久久鬼色| 成人av电影在线网| 欧美日韩黄色一区二区| 欧美精品一区二区在线播放| 国产亚洲精品超碰| 亚洲高清在线精品| 国产精品一区二区视频| 在线看一区二区| 国产欧美一区二区精品婷婷| 亚洲欧美国产毛片在线| 黑人精品欧美一区二区蜜桃| 91视频一区二区| 欧美精品一区二区蜜臀亚洲| 激情文学综合网| 91精品国产综合久久精品app| 日韩精品影音先锋| 久久99深爱久久99精品| 国产超碰在线一区| 亚洲午夜激情网页| 国产乱码精品一区二区三区忘忧草| 95精品视频在线| 亚洲国产人成综合网站| 色综合久久综合网97色综合 | 一本一道波多野结衣一区二区| 亚洲成va人在线观看| 国产日韩一级二级三级| 欧美日韩免费在线视频| 国产盗摄视频一区二区三区| 天堂蜜桃91精品| 日韩一区在线免费观看| 久久综合色一综合色88| 成人黄色片在线观看| 精品av综合导航| 国产一区日韩二区欧美三区| 日韩欧美高清一区| 久久99精品视频| 欧美日本乱大交xxxxx| 亚洲成人精品影院| 欧美成人免费网站| 色悠悠久久综合| 在线观看亚洲一区| 视频一区视频二区中文| 不卡av在线网| 国产在线一区观看| 蜜臀久久99精品久久久久宅男| 亚洲二区视频在线| 亚洲成av人在线观看| 亚洲123区在线观看| 亚洲综合一区二区| 一区二区成人在线观看| 一区二区三区精品在线| 亚洲一区二区精品视频| 国产精品久久久久久久久久久免费看| 91国模大尺度私拍在线视频| 久久国产麻豆精品| 亚洲一级片在线观看| 欧美精品一区二区在线观看| 欧美大片在线观看| 成人午夜电影小说| 在线观看日韩毛片| 欧美无砖专区一中文字| 91高清视频在线| 在线观看成人小视频| 在线一区二区三区四区五区| 91日韩在线专区| 色婷婷综合久色| 91啦中文在线观看| 在线中文字幕一区| 欧美日韩免费观看一区二区三区| 91精品91久久久中77777| 精品视频在线视频| 777久久久精品| 欧美v日韩v国产v| 久久久久久亚洲综合影院红桃| 久久精品亚洲精品国产欧美| 国产日韩精品视频一区| 亚洲欧洲国产日本综合| 一区二区三区不卡在线观看| 亚洲国产综合色| 日本少妇一区二区| 国产成人在线看| 99re热视频精品| 欧美日韩精品一区二区三区蜜桃| 国产亚洲成av人在线观看导航| 曰韩精品一区二区| 亚洲欧美在线视频| 亚洲国产一二三| 国产一区二区三区免费看 | 成人欧美一区二区三区| 1000部国产精品成人观看| 一区二区三区四区中文字幕| 偷窥国产亚洲免费视频| 精品一二三四区| 99久久精品久久久久久清纯| 欧美色中文字幕| 久久人人97超碰com| 亚洲欧美色图小说| 蜜桃精品视频在线| 成人免费毛片app| 69精品人人人人| 国产精品美女久久久久久久久久久| 亚洲一区二区三区四区在线 | 亚洲黄色av一区| 亚洲成在人线在线播放| 欧美亚洲一区三区| 日韩av高清在线观看| 精品亚洲国产成人av制服丝袜| 不卡一区二区在线| 91精品国产高清一区二区三区| 久久久久久毛片| 亚洲午夜在线视频| 国产成人午夜精品影院观看视频 | 欧美三级韩国三级日本一级| 久久综合国产精品| 婷婷综合五月天| 成人动漫一区二区三区| 欧美一区二区三区成人| 亚洲精品视频一区二区| 国产美女一区二区三区| 91麻豆精品国产91久久久资源速度| 欧美国产97人人爽人人喊| 免费日韩伦理电影| 欧美亚洲国产一卡| 亚洲欧洲日产国码二区| 国产激情视频一区二区三区欧美| 欧美日韩一卡二卡| 亚洲视频在线观看三级| 国产精品99久久久久久久女警| 在线成人免费视频| 亚洲精品乱码久久久久久日本蜜臀| 国产永久精品大片wwwapp| 欧美色精品天天在线观看视频| 国产精品毛片大码女人| 激情欧美一区二区| 欧美一区二区大片| 亚洲成av人综合在线观看| 91蜜桃传媒精品久久久一区二区| 日本一区二区成人| 国产成人精品在线看| 精品国产三级电影在线观看| 男人的天堂久久精品| 欧美日本韩国一区二区三区视频| 亚洲影视在线观看| 91精彩视频在线观看| 一区二区欧美视频| 色综合天天综合在线视频| 国产精品成人免费在线| 国产**成人网毛片九色| 中文字幕第一区二区| 国产aⅴ精品一区二区三区色成熟| 精品国产电影一区二区| 激情深爱一区二区| 久久久久久久久久久久久久久99 | 五月天一区二区| 欧美日韩精品一区二区在线播放| 亚洲综合图片区| 欧美日韩在线三区| 五月天亚洲婷婷| 欧美一二三四在线| 经典三级在线一区| 国产欧美一区二区三区鸳鸯浴| 国产盗摄精品一区二区三区在线| 久久久久久亚洲综合影院红桃| 国产精品综合在线视频| 国产精品理论片在线观看| www.一区二区| 亚洲午夜久久久| 日韩视频在线你懂得| 国产一区久久久| 国产精品色一区二区三区| 91福利精品第一导航| 日韩av电影天堂| 久久蜜桃一区二区| www.色精品| 精品久久久久av影院 | 激情欧美一区二区三区在线观看| 亚洲婷婷综合久久一本伊一区| 久久一日本道色综合| 国产欧美一区二区精品性色 | 91视频在线观看| 成人免费的视频| 成人午夜视频网站| 97久久精品人人澡人人爽| 99re6这里只有精品视频在线观看|