2011.2.24
http://d.hatena.ne.jp/uehaj/




Slide # 2   g*ws 2011.2.24
Slide # 3   g*ws 2011.2.24
Slide # 4   g*ws 2011.2.24
GSQL
     SwingBuilder
     MarkupBuilder
     JSonBuilder




Slide # 4   g*ws 2011.2.24
JBoss SEAM
                             GMaven/Maven3                Mule ESB
     GSQL                    Jenkins/Hudson               Apache Camel
     SwingBuilder            Spring Framework             tc Server
     MarkupBuilder           Oracle Data Integrator       FreeMind
     JSonBuilder             Oracle Business Components




Slide # 4   g*ws 2011.2.24
JBoss SEAM
                             GMaven/Maven3                Mule ESB
     GSQL                    Jenkins/Hudson               Apache Camel
     SwingBuilder            Spring Framework             tc Server
     MarkupBuilder           Oracle Data Integrator       FreeMind
     JSonBuilder             Oracle Business Components



   Gant
   Gradle




Slide # 4   g*ws 2011.2.24
JBoss SEAM
                             GMaven/Maven3                Mule ESB
     GSQL                    Jenkins/Hudson               Apache Camel
     SwingBuilder            Spring Framework             tc Server
     MarkupBuilder           Oracle Data Integrator       FreeMind
     JSonBuilder             Oracle Business Components

                                   Grails(Web)      Gaelyk(GAE)
   Gant                              GSP,GORM       Play Framework
   Gradle                          Griffon(Swing)




Slide # 4   g*ws 2011.2.24
JBoss SEAM
                             GMaven/Maven3                Mule ESB
     GSQL                    Jenkins/Hudson               Apache Camel
     SwingBuilder            Spring Framework             tc Server
     MarkupBuilder           Oracle Data Integrator       FreeMind
     JSonBuilder             Oracle Business Components

                                   Grails(Web)      Gaelyk(GAE)
   Gant                              GSP,GORM       Play Framework
   Gradle                          Griffon(Swing)


                        Spock, EasyB
  Cuke4Duke
                        CodeNarc
  Canoo Webtest
                        GContracts
Slide # 4   g*ws 2011.2.24
JBoss SEAM
                             GMaven/Maven3                  Mule ESB
     GSQL                    Jenkins/Hudson                 Apache Camel
     SwingBuilder            Spring Framework               tc Server
     MarkupBuilder           Oracle Data Integrator         FreeMind
     JSonBuilder             Oracle Business Components

                                   Grails(Web)           Gaelyk(GAE)
   Gant                              GSP,GORM            Play Framework
   Gradle                          Griffon(Swing)

                                       IDE

                        Spock, EasyB         Greclipse
  Cuke4Duke
                        CodeNarc             IntelliJ
  Canoo Webtest
                        GContracts            JEdit
Slide # 4   g*ws 2011.2.24
JBoss SEAM
                             GMaven/Maven3                  Mule ESB
     GSQL                    Jenkins/Hudson                 Apache Camel
     SwingBuilder            Spring Framework               tc Server
     MarkupBuilder           Oracle Data Integrator         FreeMind
     JSonBuilder             Oracle Business Components

                                   Grails(Web)           Gaelyk(GAE)
   Gant                              GSP,GORM            Play Framework
   Gradle                          Griffon(Swing)

                                       IDE

                        Spock, EasyB         Greclipse     Groovy++
  Cuke4Duke
                        CodeNarc             IntelliJ      GContracts
  Canoo Webtest
                        GContracts            JEdit
Slide # 4   g*ws 2011.2.24
.*;                                        BufferedReader bis = new
et.*;                                BufferedReader(new InputStreamReader(ins));
                                           String line;
SocketAccess {                             while ((line = bis.readLine()) != null) {
                                             System.out.println(line);
void main(String[] args) {                 }
 = null;                                 }
m ins = null;                            catch (IOException e) {
am outs = null;                            e.printStackTrace();
                                           try {
w Socket("groovy.codehaus.org",              if (soc != null) soc.close();
                                           }
 getInputStream();                         catch(IOException ex) {}
c.getOutputStream();                     }
 ("GET / HTTP/1.0n                    }
));                                  }


        Slide # 5   g*ws 2011.2.24
import java.io.*;                                    BufferedReader bis = new
import java.net.*;                             BufferedReader(new InputStreamReader(ins));
                                                     String line;
public class SocketAccess {                          while ((line = bis.readLine()) != null) {
                                                       System.out.println(line);
  public static void main(String[] args) {           }
   Socket soc = null;                              }
   InputStream ins = null;                         catch (IOException e) {
   OutputStream outs = null;                         e.printStackTrace();
   try {                                             try {
     soc = new Socket("groovy.codehaus.org",           if (soc != null) soc.close();
80);                                                 }
     ins = soc.getInputStream();                     catch(IOException ex) {}
     outs = soc.getOutputStream();                 }
     outs.write("GET / HTTP/1.0n                }
n".getBytes());                               }


  Slide # 6      g*ws 2011.2.24
import java.io.*;                                    BufferedReader bis = new
import java.net.*;                             BufferedReader(new InputStreamReader(ins));
                                                     String line;
public class SocketAccess {                          while ((line = bis.readLine()) != null) {
                                                       System.out.println(line);
  public static void main(String[] args) {           }
   Socket soc = null;                              }
   InputStream ins = null;                         catch (IOException e) {
   OutputStream outs = null;                         e.printStackTrace();
   try {                                             try {
     soc = new Socket("groovy.codehaus.org",           if (soc != null) soc.close();
80);                                                 }
     ins = soc.getInputStream();                     catch(IOException ex) {}
     outs = soc.getOutputStream();                 }
     outs.write("GET / HTTP/1.0n                }
n".getBytes());                               }


  Slide # 7      g*ws 2011.2.24
import java.io.*;                                    BufferedReader bis = new
import java.net.*;                             BufferedReader(new InputStreamReader(ins));
                                                     String line;
public class SocketAccess {                          while ((line = bis.readLine()) != null) {
                                                       System.out.println(line);
  public static void main(String[] args) {           }
   Socket soc = null;                              }
   InputStream ins = null;                         catch (IOException e) {
   OutputStream outs = null;                         e.printStackTrace();
   try {                                             try {
     soc = new Socket("groovy.codehaus.org",           if (soc != null) soc.close();
80);                                                 }
     ins = soc.getInputStream();                     catch(IOException ex) {}
     outs = soc.getOutputStream();                 }
     outs.write("GET / HTTP/1.0n                }
n".getBytes());                               }


  Slide # 7      g*ws 2011.2.24
BufferedReader bis = new
                                               BufferedReader(new InputStreamReader(ins));
                                                     String line;
public class SocketAccess {                          while ((line = bis.readLine()) != null) {
                                                       System.out.println(line);
  public static void main(String[] args) {           }
   Socket soc = null;                              }
   InputStream ins = null;                         catch (IOException e) {
   OutputStream outs = null;                         e.printStackTrace();
   try {                                             try {
     soc = new Socket("groovy.codehaus.org",           if (soc != null) soc.close();
80);                                                 }
     ins = soc.getInputStream();                     catch(IOException ex) {}
     outs = soc.getOutputStream();                 }
     outs.write("GET / HTTP/1.0n                }
n".getBytes());                               }


  Slide # 8     g*ws 2011.2.24
BufferedReader bis = new
                                               BufferedReader(new InputStreamReader(ins));
                                                     String line;
public class SocketAccess {                          while ((line = bis.readLine()) != null) {
                                                       System.out.println(line);
  public static void main(String[] args) {           }
   Socket soc = null;                              }
   InputStream ins = null;                         catch (IOException e) {
   OutputStream outs = null;                         e.printStackTrace();
   try {                                             try {
     soc = new Socket("groovy.codehaus.org",           if (soc != null) soc.close();
80);                                                 }
     ins = soc.getInputStream();                     catch(IOException ex) {}
     outs = soc.getOutputStream();                 }
     outs.write("GET / HTTP/1.0n                }
n".getBytes());                               }


  Slide # 8     g*ws 2011.2.24
BufferedReader bis = new
                                               BufferedReader(new InputStreamReader(ins));
                                                   String line;
                                                   while ((line = bis.readLine()) != null) {
                                                     System.out.println(line);
                                                   }
   Socket soc = null;                            }
   InputStream ins = null;                       catch (IOException e) {
   OutputStream outs = null;                       e.printStackTrace();
   try {                                           try {
     soc = new Socket("groovy.codehaus.org",         if (soc != null) soc.close();
80);                                               }
     ins = soc.getInputStream();                   catch(IOException ex) {}
     outs = soc.getOutputStream();               }
     outs.write("GET / HTTP/1.0n
n".getBytes());


          9
  Slide #10     g*ws 2011.2.24
BufferedReader bis = new
                                               BufferedReader(new InputStreamReader(ins));
                                                   String line;
                                                   while ((line = bis.readLine()) != null) {
                                                     System.out.println(line);
                                                   }
   Socket soc = null;                            }
   InputStream ins = null;                       catch (IOException e) {
   OutputStream outs = null;                       e.printStackTrace();
   try {                                           try {
     soc = new Socket("groovy.codehaus.org",         if (soc != null) soc.close();
80);                                               }
     ins = soc.getInputStream();                   catch(IOException ex) {}
     outs = soc.getOutputStream();               }
     outs.write("GET / HTTP/1.0n
n".getBytes());


          9
  Slide #10     g*ws 2011.2.24
BufferedReader bis = new
                                              BufferedReader(new InputStreamReader(ins));
                                                  String line;
                                                  while ((line = bis.readLine()) != null) {
                                                    System.out.println(line);
                                                  }
  Socket soc = null;
  InputStream ins = null;
  OutputStream outs = null;

    soc = new Socket("groovy.codehaus.org",       if (soc != null) soc.close();
80);
    ins = soc.getInputStream();
    outs = soc.getOutputStream();
    outs.write("GET / HTTP/1.0n
n".getBytes());


  Slide #10    g*ws 2011.2.24
BufferedReader bis = new
                                              BufferedReader(new InputStreamReader(ins));
                                                  String line;
                                                    def
                                                  while ((line = bis.readLine()) != null) {
                                                    System.out.println(line);
                                                  }
  Socket soc = null;
     def
  InputStream ins = null;
     def
  OutputStream outs = null;
     def

    soc = new Socket("groovy.codehaus.org",       if (soc != null) soc.close();
80);
    ins = soc.getInputStream();
    outs = soc.getOutputStream();
    outs.write("GET / HTTP/1.0n
n".getBytes());


  Slide #10    g*ws 2011.2.24
bis = new BufferedReader(new
                                              InputStreamReader(ins));
                                                  def line = null;
                                                  while ((line = bis.readLine()) != null) {
                                                    System.out.println(line);
                                                  }
  def soc = null;
  def ins = null;
  def outs = null;

    soc = new Socket("groovy.codehaus.org",        if (soc != null) soc.close();
80);
    ins = soc.getInputStream();
    outs = soc.getOutputStream();
    outs.write("GET / HTTP/1.0n
n".getBytes());


  Slide #11      g*ws 2011.2.24
bis = new BufferedReader(new
                                               InputStreamReader(ins));
                                                   def line = null;
                                                   while ((line = bis.readLine()) != null) {
                                                     System.out.println(line);
                                                   }
  def soc = null;
                                               }
  def ins = null;
  def outs = null;

     soc = new Socket("groovy.codehaus.org",        if (soc != null) soc.close();
80);
 .withStreams { ins, outs ->
     ins = soc.getInputStream();
     outs = soc.getOutputStream();
     outs.write("GET / HTTP/1.0n
n".getBytes());


  Slide #11      g*ws 2011.2.24
bis = new BufferedReader(new
                                               InputStreamReader(ins));
                                                   def line = null;
                                                   while ((line = bis.readLine()) != null) {
                                                     System.out.println(line);
                                                   }
  def soc = null;
                                               }
  def ins = null;
  def outs = null;

     soc = new Socket("groovy.codehaus.org",        if (soc != null) soc.close();
80);
 .withStreams { ins,outs ->
                 ins, outs ->
     ins = soc.getInputStream();
     outs = soc.getOutputStream();
     outs.write("GET / HTTP/1.0n
n".getBytes());


  Slide #11      g*ws 2011.2.24
bis = new BufferedReader(new
                                        InputStreamReader(ins));
                                            def line = null;
                                            while ((line = bis.readLine()) != null) {
                                              System.out.println(line);
                                            }
                                          }



    new Socket("groovy.codehaus.org",
80).withStreams { ins, outs ->

    outs.write("GET / HTTP/1.0n
n".getBytes());



  Slide #12     g*ws 2011.2.24
bis = new BufferedReader(new
                                        InputStreamReader(ins));
                                             def line = null;
                                            ins.eachLine{ bis.readLine()) != null) {
                                             while ((line = line ->
                                               System.out.println(line);
                                             }
                                          }



    new Socket("groovy.codehaus.org",
80).withStreams { ins, outs ->

    outs.write("GET / HTTP/1.0n
n".getBytes());



  Slide #12     g*ws 2011.2.24
bis = new BufferedReader(new
                                        InputStreamReader(ins));
                                             def line = null;
                                            ins.eachLine{ bis.readLine()) != null) {
                                             while ((line = line ->
                                               System.out.println(line);
                                             }
                                          }



    new Socket("groovy.codehaus.org",
80).withStreams { ins, outs ->

    outs.write("GET / HTTP/1.0n
n".getBytes());



  Slide #12     g*ws 2011.2.24
ins.eachLine{ line ->
                                               System.out.println(line);
                                             }
                                        }



    new Socket("groovy.codehaus.org",
80).withStreams { ins, outs ->

    outs.write("GET / HTTP/1.0n
n".getBytes());



  Slide #13     g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".getBytes());
    ins.eachLine { line ->
     System.out.println(line);
   }
 }




Slide #14    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".getBytes());
    ins.eachLine { line ->
     System.out.println(line);
   }
 }




Slide #15    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".getBytes());
                                    .bytes);
    ins.eachLine { line ->
     System.out.println(line);
   }
 }




Slide #15    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".bytes);
    ins.eachLine { line ->
     System.out.println(line);
   }
 }




Slide #16    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".bytes);
    ins.eachLine { line ->
     println(line);
     System.out.println(line);
   }
 }




Slide #16    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".bytes);
    ins.eachLine { line ->
     println(line);
   }
 }




Slide #17    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".bytes);
    ins.eachLine { line ->
     println(it);
     println(line);
   }
 }




Slide #17    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".bytes);
    ins.eachLine {
     println(it);
   }
 }




Slide #18    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".bytes);
    ins.eachLine {
     println(it);
   }
 }




Slide #18    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
    outs.write("GET / HTTP/1.0nn".bytes)
    ins.eachLine {
     println(it)
   }
 }




Slide #19    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
   outs.write "GET // HTTP/1.0nn".bytes
    outs.write("GET HTTP/1.0nn".bytes)
   ins.eachLine {
     println it
     println(it)
   }
 }




Slide #19    g*ws 2011.2.24
new Socket("groovy.codehaus.org", 80).withStreams { ins, outs ->
     outs.write "GET / HTTP/1.0nn".bytes
     ins.eachLine {
      println it
    }
  }




Slide #20   g*ws 2011.2.24
println new URL("http://groovy.codehaus.org").text




Slide #21   g*ws 2011.2.24
println new URL("http://groovy.codehaus.org").text




       Java       Groovy




                                       Java 7



Slide #21   g*ws 2011.2.24
Slide #22   g*ws 2011.2.24

Jggug ws 15th LT 20110224

  • 1.
  • 2.
  • 3.
    Slide # 3 g*ws 2011.2.24
  • 4.
    Slide # 4 g*ws 2011.2.24
  • 5.
    GSQL SwingBuilder MarkupBuilder JSonBuilder Slide # 4 g*ws 2011.2.24
  • 6.
    JBoss SEAM GMaven/Maven3 Mule ESB GSQL Jenkins/Hudson Apache Camel SwingBuilder Spring Framework tc Server MarkupBuilder Oracle Data Integrator FreeMind JSonBuilder Oracle Business Components Slide # 4 g*ws 2011.2.24
  • 7.
    JBoss SEAM GMaven/Maven3 Mule ESB GSQL Jenkins/Hudson Apache Camel SwingBuilder Spring Framework tc Server MarkupBuilder Oracle Data Integrator FreeMind JSonBuilder Oracle Business Components Gant Gradle Slide # 4 g*ws 2011.2.24
  • 8.
    JBoss SEAM GMaven/Maven3 Mule ESB GSQL Jenkins/Hudson Apache Camel SwingBuilder Spring Framework tc Server MarkupBuilder Oracle Data Integrator FreeMind JSonBuilder Oracle Business Components Grails(Web) Gaelyk(GAE) Gant GSP,GORM Play Framework Gradle Griffon(Swing) Slide # 4 g*ws 2011.2.24
  • 9.
    JBoss SEAM GMaven/Maven3 Mule ESB GSQL Jenkins/Hudson Apache Camel SwingBuilder Spring Framework tc Server MarkupBuilder Oracle Data Integrator FreeMind JSonBuilder Oracle Business Components Grails(Web) Gaelyk(GAE) Gant GSP,GORM Play Framework Gradle Griffon(Swing) Spock, EasyB Cuke4Duke CodeNarc Canoo Webtest GContracts Slide # 4 g*ws 2011.2.24
  • 10.
    JBoss SEAM GMaven/Maven3 Mule ESB GSQL Jenkins/Hudson Apache Camel SwingBuilder Spring Framework tc Server MarkupBuilder Oracle Data Integrator FreeMind JSonBuilder Oracle Business Components Grails(Web) Gaelyk(GAE) Gant GSP,GORM Play Framework Gradle Griffon(Swing) IDE Spock, EasyB Greclipse Cuke4Duke CodeNarc IntelliJ Canoo Webtest GContracts JEdit Slide # 4 g*ws 2011.2.24
  • 11.
    JBoss SEAM GMaven/Maven3 Mule ESB GSQL Jenkins/Hudson Apache Camel SwingBuilder Spring Framework tc Server MarkupBuilder Oracle Data Integrator FreeMind JSonBuilder Oracle Business Components Grails(Web) Gaelyk(GAE) Gant GSP,GORM Play Framework Gradle Griffon(Swing) IDE Spock, EasyB Greclipse Groovy++ Cuke4Duke CodeNarc IntelliJ GContracts Canoo Webtest GContracts JEdit Slide # 4 g*ws 2011.2.24
  • 12.
    .*; BufferedReader bis = new et.*; BufferedReader(new InputStreamReader(ins)); String line; SocketAccess { while ((line = bis.readLine()) != null) { System.out.println(line); void main(String[] args) { } = null; } m ins = null; catch (IOException e) { am outs = null; e.printStackTrace(); try { w Socket("groovy.codehaus.org", if (soc != null) soc.close(); } getInputStream(); catch(IOException ex) {} c.getOutputStream(); } ("GET / HTTP/1.0n } )); } Slide # 5 g*ws 2011.2.24
  • 13.
    import java.io.*; BufferedReader bis = new import java.net.*; BufferedReader(new InputStreamReader(ins)); String line; public class SocketAccess { while ((line = bis.readLine()) != null) { System.out.println(line); public static void main(String[] args) { } Socket soc = null; } InputStream ins = null; catch (IOException e) { OutputStream outs = null; e.printStackTrace(); try { try { soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); } ins = soc.getInputStream(); catch(IOException ex) {} outs = soc.getOutputStream(); } outs.write("GET / HTTP/1.0n } n".getBytes()); } Slide # 6 g*ws 2011.2.24
  • 14.
    import java.io.*; BufferedReader bis = new import java.net.*; BufferedReader(new InputStreamReader(ins)); String line; public class SocketAccess { while ((line = bis.readLine()) != null) { System.out.println(line); public static void main(String[] args) { } Socket soc = null; } InputStream ins = null; catch (IOException e) { OutputStream outs = null; e.printStackTrace(); try { try { soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); } ins = soc.getInputStream(); catch(IOException ex) {} outs = soc.getOutputStream(); } outs.write("GET / HTTP/1.0n } n".getBytes()); } Slide # 7 g*ws 2011.2.24
  • 15.
    import java.io.*; BufferedReader bis = new import java.net.*; BufferedReader(new InputStreamReader(ins)); String line; public class SocketAccess { while ((line = bis.readLine()) != null) { System.out.println(line); public static void main(String[] args) { } Socket soc = null; } InputStream ins = null; catch (IOException e) { OutputStream outs = null; e.printStackTrace(); try { try { soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); } ins = soc.getInputStream(); catch(IOException ex) {} outs = soc.getOutputStream(); } outs.write("GET / HTTP/1.0n } n".getBytes()); } Slide # 7 g*ws 2011.2.24
  • 16.
    BufferedReader bis =new BufferedReader(new InputStreamReader(ins)); String line; public class SocketAccess { while ((line = bis.readLine()) != null) { System.out.println(line); public static void main(String[] args) { } Socket soc = null; } InputStream ins = null; catch (IOException e) { OutputStream outs = null; e.printStackTrace(); try { try { soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); } ins = soc.getInputStream(); catch(IOException ex) {} outs = soc.getOutputStream(); } outs.write("GET / HTTP/1.0n } n".getBytes()); } Slide # 8 g*ws 2011.2.24
  • 17.
    BufferedReader bis =new BufferedReader(new InputStreamReader(ins)); String line; public class SocketAccess { while ((line = bis.readLine()) != null) { System.out.println(line); public static void main(String[] args) { } Socket soc = null; } InputStream ins = null; catch (IOException e) { OutputStream outs = null; e.printStackTrace(); try { try { soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); } ins = soc.getInputStream(); catch(IOException ex) {} outs = soc.getOutputStream(); } outs.write("GET / HTTP/1.0n } n".getBytes()); } Slide # 8 g*ws 2011.2.24
  • 18.
    BufferedReader bis =new BufferedReader(new InputStreamReader(ins)); String line; while ((line = bis.readLine()) != null) { System.out.println(line); } Socket soc = null; } InputStream ins = null; catch (IOException e) { OutputStream outs = null; e.printStackTrace(); try { try { soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); } ins = soc.getInputStream(); catch(IOException ex) {} outs = soc.getOutputStream(); } outs.write("GET / HTTP/1.0n n".getBytes()); 9 Slide #10 g*ws 2011.2.24
  • 19.
    BufferedReader bis =new BufferedReader(new InputStreamReader(ins)); String line; while ((line = bis.readLine()) != null) { System.out.println(line); } Socket soc = null; } InputStream ins = null; catch (IOException e) { OutputStream outs = null; e.printStackTrace(); try { try { soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); } ins = soc.getInputStream(); catch(IOException ex) {} outs = soc.getOutputStream(); } outs.write("GET / HTTP/1.0n n".getBytes()); 9 Slide #10 g*ws 2011.2.24
  • 20.
    BufferedReader bis =new BufferedReader(new InputStreamReader(ins)); String line; while ((line = bis.readLine()) != null) { System.out.println(line); } Socket soc = null; InputStream ins = null; OutputStream outs = null; soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); ins = soc.getInputStream(); outs = soc.getOutputStream(); outs.write("GET / HTTP/1.0n n".getBytes()); Slide #10 g*ws 2011.2.24
  • 21.
    BufferedReader bis =new BufferedReader(new InputStreamReader(ins)); String line; def while ((line = bis.readLine()) != null) { System.out.println(line); } Socket soc = null; def InputStream ins = null; def OutputStream outs = null; def soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); ins = soc.getInputStream(); outs = soc.getOutputStream(); outs.write("GET / HTTP/1.0n n".getBytes()); Slide #10 g*ws 2011.2.24
  • 22.
    bis = newBufferedReader(new InputStreamReader(ins)); def line = null; while ((line = bis.readLine()) != null) { System.out.println(line); } def soc = null; def ins = null; def outs = null; soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); ins = soc.getInputStream(); outs = soc.getOutputStream(); outs.write("GET / HTTP/1.0n n".getBytes()); Slide #11 g*ws 2011.2.24
  • 23.
    bis = newBufferedReader(new InputStreamReader(ins)); def line = null; while ((line = bis.readLine()) != null) { System.out.println(line); } def soc = null; } def ins = null; def outs = null; soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); .withStreams { ins, outs -> ins = soc.getInputStream(); outs = soc.getOutputStream(); outs.write("GET / HTTP/1.0n n".getBytes()); Slide #11 g*ws 2011.2.24
  • 24.
    bis = newBufferedReader(new InputStreamReader(ins)); def line = null; while ((line = bis.readLine()) != null) { System.out.println(line); } def soc = null; } def ins = null; def outs = null; soc = new Socket("groovy.codehaus.org", if (soc != null) soc.close(); 80); .withStreams { ins,outs -> ins, outs -> ins = soc.getInputStream(); outs = soc.getOutputStream(); outs.write("GET / HTTP/1.0n n".getBytes()); Slide #11 g*ws 2011.2.24
  • 25.
    bis = newBufferedReader(new InputStreamReader(ins)); def line = null; while ((line = bis.readLine()) != null) { System.out.println(line); } } new Socket("groovy.codehaus.org", 80).withStreams { ins, outs -> outs.write("GET / HTTP/1.0n n".getBytes()); Slide #12 g*ws 2011.2.24
  • 26.
    bis = newBufferedReader(new InputStreamReader(ins)); def line = null; ins.eachLine{ bis.readLine()) != null) { while ((line = line -> System.out.println(line); } } new Socket("groovy.codehaus.org", 80).withStreams { ins, outs -> outs.write("GET / HTTP/1.0n n".getBytes()); Slide #12 g*ws 2011.2.24
  • 27.
    bis = newBufferedReader(new InputStreamReader(ins)); def line = null; ins.eachLine{ bis.readLine()) != null) { while ((line = line -> System.out.println(line); } } new Socket("groovy.codehaus.org", 80).withStreams { ins, outs -> outs.write("GET / HTTP/1.0n n".getBytes()); Slide #12 g*ws 2011.2.24
  • 28.
    ins.eachLine{ line -> System.out.println(line); } } new Socket("groovy.codehaus.org", 80).withStreams { ins, outs -> outs.write("GET / HTTP/1.0n n".getBytes()); Slide #13 g*ws 2011.2.24
  • 29.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".getBytes()); ins.eachLine { line -> System.out.println(line); } } Slide #14 g*ws 2011.2.24
  • 30.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".getBytes()); ins.eachLine { line -> System.out.println(line); } } Slide #15 g*ws 2011.2.24
  • 31.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".getBytes()); .bytes); ins.eachLine { line -> System.out.println(line); } } Slide #15 g*ws 2011.2.24
  • 32.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".bytes); ins.eachLine { line -> System.out.println(line); } } Slide #16 g*ws 2011.2.24
  • 33.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".bytes); ins.eachLine { line -> println(line); System.out.println(line); } } Slide #16 g*ws 2011.2.24
  • 34.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".bytes); ins.eachLine { line -> println(line); } } Slide #17 g*ws 2011.2.24
  • 35.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".bytes); ins.eachLine { line -> println(it); println(line); } } Slide #17 g*ws 2011.2.24
  • 36.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".bytes); ins.eachLine { println(it); } } Slide #18 g*ws 2011.2.24
  • 37.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".bytes); ins.eachLine { println(it); } } Slide #18 g*ws 2011.2.24
  • 38.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write("GET / HTTP/1.0nn".bytes) ins.eachLine { println(it) } } Slide #19 g*ws 2011.2.24
  • 39.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write "GET // HTTP/1.0nn".bytes outs.write("GET HTTP/1.0nn".bytes) ins.eachLine { println it println(it) } } Slide #19 g*ws 2011.2.24
  • 40.
    new Socket("groovy.codehaus.org", 80).withStreams{ ins, outs -> outs.write "GET / HTTP/1.0nn".bytes ins.eachLine { println it } } Slide #20 g*ws 2011.2.24
  • 41.
  • 42.
    println new URL("http://groovy.codehaus.org").text Java Groovy Java 7 Slide #21 g*ws 2011.2.24
  • 43.
    Slide #22 g*ws 2011.2.24

Editor's Notes

  • #2 \n
  • #3 \n
  • #4 \n
  • #5 Groovyは言語であるが「Groovyで何かプログラムを書く」というだけのものではない。Groovyは拡張可能なプラットフォームである。\n\n
  • #6 Groovyは言語であるが「Groovyで何かプログラムを書く」というだけのものではない。Groovyは拡張可能なプラットフォームである。\n\n
  • #7 Groovyは言語であるが「Groovyで何かプログラムを書く」というだけのものではない。Groovyは拡張可能なプラットフォームである。\n\n
  • #8 Groovyは言語であるが「Groovyで何かプログラムを書く」というだけのものではない。Groovyは拡張可能なプラットフォームである。\n\n
  • #9 Groovyは言語であるが「Groovyで何かプログラムを書く」というだけのものではない。Groovyは拡張可能なプラットフォームである。\n\n
  • #10 Groovyは言語であるが「Groovyで何かプログラムを書く」というだけのものではない。Groovyは拡張可能なプラットフォームである。\n\n
  • #11 Groovyは言語であるが「Groovyで何かプログラムを書く」というだけのものではない。Groovyは拡張可能なプラットフォームである。\n\n
  • #12 \n
  • #13 \n
  • #14 \n
  • #15 \n
  • #16 \n
  • #17 \n
  • #18 \n
  • #19 \n
  • #20 \n
  • #21 \n
  • #22 \n
  • #23 \n
  • #24 \n
  • #25 \n
  • #26 \n
  • #27 \n
  • #28 \n
  • #29 \n
  • #30 \n
  • #31  今回「簡潔Java」としてのGroovyを説明しました。\n 実際にはそれだけではなく、Groovyの特性、動的であること、自己拡張性などは、フレームワークやツールを含むエコシステムを創成するほどのものです。\n それらをどう使うも良しです。\n ひきつづきLTをお楽しみください。\n
  • #32 \n
  • #33 \n
  • #34 \n
  • #35 \n
  • #36 \n
  • #37 \n
  • #38 \n
  • #39 \n
  • #40 \n
  • #41 \n
  • #42 \n
  • #43 \n
  • #44 \n
  • #45 \n