📄 escapeutil.java
字号:
/**
* IgaLib -> String
* Copyright (C) 2001 Tosiki IGA , IgaLib project member
* (http://homepage2.nifty.com/igat/igapyon/index.html)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package jp.ne.nifty.iga.tosiki.string;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* 僄僗働乕僾暥帤傪埖偆儐乕僥傿儕僥傿僋儔僗 <BR>
* <BR>
*
* @author Tosiki IGA
*/
public class EscapeUtil
{
/**
* 梌偊傜傟偨暥帤楍偺僟僽儖僋僆乕僥乕僔儑儞偲僄僗働乕僾暥帤傪
* 僄僗働乕僾偡傞儊僜僢僪
*
* @param String strInput 擖椡暥帤楍
* @return String 僄僗働乕僾屻暥帤楍
*/
public static final String encodeQuote(String strInput)
{
try{
Reader reader=new StringReader(strInput);
StringWriter writerString=new StringWriter();
Writer writer=new EscapeQuoteWriter(writerString);
for(;;)
{
int iRead=reader.read();
if(iRead<0)break;
writer.write(iRead);
}
reader.close();
writer.flush();
writer.close();
return writerString.toString();
}catch(IOException ex){
System.out.println(ex.toString());
ex.printStackTrace();
return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -