KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SlowWrite


1 import jcifs.smb.SmbFileOutputStream;
2
3 public class SlowWrite {
4
5     public static void main( String JavaDoc argv[] ) throws Exception JavaDoc {
6
7         SmbFileOutputStream out = new SmbFileOutputStream( argv[0] );
8
9         for( int i = 0; i < 2; i++ ) {
10             out.write( (new String JavaDoc( "hello" + i )).getBytes() );
11             Thread.sleep( 17000 );
12         }
13
14         out.close();
15     }
16 }
17
18
Popular Tags