<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/takeco/">
    <title>takeco @Wiki　</title>
    <link>http://w.atwiki.jp/takeco/</link>
    <atom:link href="https://w.atwiki.jp/takeco/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>takeco @Wiki　</description>

    <dc:language>ja</dc:language>
    <dc:date>2005-08-19T22:06:39+09:00</dc:date>
    <utime>1124456799</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/takeco/pages/6.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/takeco/pages/5.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/takeco/pages/6.html">
    <title>暗号化</title>
    <link>https://w.atwiki.jp/takeco/pages/6.html</link>
    <description>
      import java.io.BufferedWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileInputStream;
import javax.crypto.KeyGenerator;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.CipherOutputStream;
import javax.crypto.CipherInputStream;

public class Angou{

	public static void main(String args[]){
		try{
		KeyGenerator kg = KeyGenerator.getInstance(&quot;DES&quot;);
		SecretKey key = kg.generateKey();
		Cipher cipher = Cipher.getInstance(&quot;DES/ECB/PKCS5Padding&quot;);
		
		File file = new File(&quot;Angou.txt&quot;);

		cipher.init(Cipher.ENCRYPT_MODE,key);
		BufferedWriter bw = new BufferedWriter(
						new OutputStreamWriter(
							new CipherOutputStream(
								new FileOutputStream(file),cipher)));
		bw.write(&quot;暗号化します&quot;);
		bw.newLine();
		bw.write(&quot;これが暗号化だ！！&quot;);
		bw.close();

		cipher.init(Cipher.DECRYPT_MODE,key);
		BufferedReader br = new BufferedReader(
						new InputStreamReader(
							new CipherInputStream(
								new FileInputStream(file),cipher)));

		//一旦一行読込まないとbr.ready()が機能しない
		System.out.println(br.readLine());
		while(br.ready()){
			System.out.println(br.readLine());
		}
		br.close();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}    </description>
    <dc:date>2005-08-19T22:06:39+09:00</dc:date>
    <utime>1124456799</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/takeco/pages/5.html">
    <title>java.text.DateFormat</title>
    <link>https://w.atwiki.jp/takeco/pages/5.html</link>
    <description>
      import java.util.Date;
import java.text.DateFormat;

public class DF{
	public static void main(String args[]){
		String t,d,td;

		Date date = new Date();
		System.out.println(date);

		t = DateFormat.getTimeInstance().format(date);
		System.out.println(t);
		
		d = DateFormat.getDateInstance().format(date);
		System.out.println(d);

		td = DateFormat.getDateTimeInstance().format(date);
		System.out.println(td);
				
		//---------------------
		//　case:getTimeInstance
		//---------------------
		System.out.println(&quot;case:getTimeInstance&quot;);
		try{
			date = DateFormat.getTimeInstance().parse(t);
			System.out.println(&quot;T  t:&quot; + date);
		}catch(Exception e){}
		try{
			date = DateFormat.getTimeInstance().parse(d);
			System.out.println(&quot;T  d:&quot; + date);
		}catch(Exception e){}
		try{
			date = DateFormat.getTimeInstance().parse(td);
			System.out.println(&quot;T td:&quot; + date);
		}catch(Exception e){}
		try{
			date = DateFormat.getTimeInstance().parse(date.toString());
			System.out.println(&quot;T   :&quot; + date);
		}catch(Exception e){}

		//---------------------
		// case:getDateInstance
		//---------------------
		System.out.println(&quot;case:getDateInstance&quot;);
		try{
			date = DateFormat.getDateInstance().parse(t);
			System.out.println(&quot;D  t:&quot; + date);
		}catch(Exception e){}
		try{
			date = DateFormat.getDateInstance().parse(d);
			System.out.println(&quot;D  d:&quot; + date);
		}catch(Exception e){}
		try{
			date = DateFormat.getDateInstance().parse(td);
			System.out.println(&quot;D td:&quot; + date);
		}catch(Exception e){}
		try{
			date = DateFormat.getDateInstance().parse(date.toString());
			System.out.println(&quot;D   :&quot; + date);
		}catch(Exception e){}

		//---------------------
		// case:getDateTimeInstance
		//---------------------
		System.out.println(&quot;case:getDateTimeInstance&quot;);
		try{
			date = DateFormat.getDateTimeInstance().parse(t);
			System.out.println(&quot;DT  t:&quot; + date);
		}catch(Exception e){}		try{
			date = DateFormat.getDateTimeInstance().parse(d);
			System.out.println(&quot;DT  d:&quot; + date);
		}catch(Exception e){}		try{
			date = DateFormat.getDateTimeInstance().parse(td);
			System.out.println(&quot;DT td:&quot; + date);
		}catch(Exception e){}		try{
			date = DateFormat.getDateTimeInstance().parse(date.toString());
			System.out.println(&quot;DT   :&quot; + date);
		}catch(Exception e){}
	}	
}    </description>
    <dc:date>2005-07-20T23:03:20+09:00</dc:date>
    <utime>1121868200</utime>
  </item>
  </rdf:RDF>
