<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>
        <title>JavaRanch I/O and Streams</title>
        <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&amp;f=38</link>
        <description>A Friendly Place for Java Greenhorns</description>
        <image>
            <url>http://saloon.javaranch.com/ubb/moosefly.gif</url>
            <title>JavaRanch Big Moose Saloon</title>
            <link>http://saloon.javaranch.com/</link>
        </image>
        <language>en-us</language>
        <generator>JavaRanch RSS</generator>
        <copyright>Copyright 2007 Paul Wheaton. All Rights Reserved.</copyright>
        <item uniqueID="38-004572">
            <title>code throws error &amp;quot;java.io.EOFException&amp;quot;?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004572</link>
            <description>FileInputStream fis=new FileInputStream("emp.ser");&lt;br /&gt;ObjectInputStream ois=new ObjectInputStream(fis);&lt;br /&gt; &lt;br /&gt;System.out.println("De-serializing object...");&lt;br /&gt;&lt;br /&gt;Employee e1[]=new Employee[5];&lt;br /&gt;int i=0;&lt;br /&gt;while((e1[i]=(Employee)ois.readObject())!=null){&lt;br /&gt; //e1[i]=(Employee)ois.readObject();&lt;br /&gt;System.out.println(e1[i].getEmpno()+"\t"+e1[i].getSalary());&lt;br /&gt;}&lt;br /&gt;System.out.println("Object de-serialize...");&lt;br /&gt;ois.close();&lt;br /&gt;fis.close();</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004572</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004572minal silimkar</comments>
            <author/>
            <pubDate>Wed, 14 May 2008 02:39:13 MDT</pubDate>
        </item>
        <item uniqueID="38-004571">
            <title>change path</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004571</link>
            <description>i have given hard coding "C:/Documents and Settings/satishb/Desktop/images"&lt;br /&gt;icon image i have to change my hard coding &lt;br /&gt; &lt;br /&gt;and&lt;br /&gt; &lt;br /&gt;i set the classpath in bat file as hardcoding &lt;br /&gt; &lt;br /&gt;set CLASSPATH=D:\Work\lib\Swing.jar;&lt;br /&gt; &lt;br /&gt;I want to change this classpath hard coding bat file</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004571</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004571ramesh kancherla</comments>
            <author/>
            <pubDate>Wed, 14 May 2008 01:57:14 MDT</pubDate>
        </item>
        <item uniqueID="38-004570">
            <title>DVD Burning</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004570</link>
            <description>hi all,&lt;br /&gt; can we write files into dvd Disc using java? please anybody help me. urgent please.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004570</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004570Gopinath Ranga</comments>
            <author/>
            <pubDate>Wed, 14 May 2008 01:39:13 MDT</pubDate>
        </item>
        <item uniqueID="38-004569">
            <title>change path</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004569</link>
            <description>i have given hard coding "C:/Documents and Settings/satishb/Desktop/images"&lt;br /&gt;icon image i have to change my hard coding &lt;br /&gt; &lt;br /&gt;and&lt;br /&gt; &lt;br /&gt;i set the classpath in bat file as hardcoding &lt;br /&gt; &lt;br /&gt;set CLASSPATH=D:\Work\lib\Swing.jar;&lt;br /&gt; &lt;br /&gt;I want to change this classpath hard coding bat file</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004569</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004569ramesh kancherla</comments>
            <author/>
            <pubDate>Wed, 14 May 2008 01:27:13 MDT</pubDate>
        </item>
        <item uniqueID="38-004568">
            <title>Accessing files on a server</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004568</link>
            <description>I have my code deployed on a websphere server. how can I access a file present on server (C:\abc\def\xyz.txt). I am able to read the path from properties file but getting a file not found exception. wat should be the path in properites file to access the file that is present on harddisk.&lt;br /&gt; &lt;br /&gt;Regards,&lt;br /&gt;Ravindra.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004568</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004568Ravindra Suroju</comments>
            <author/>
            <pubDate>Wed, 14 May 2008 00:03:14 MDT</pubDate>
        </item>
        <item uniqueID="38-004566">
            <title>Reading postgresql.conf file using java</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004566</link>
            <description>hi &lt;br /&gt;can any one help me out by providing an example to postgresql.conf file from postgresql using java</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004566</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004566gnanesh viathur</comments>
            <author/>
            <pubDate>Tue, 13 May 2008 06:27:11 MDT</pubDate>
        </item>
        <item uniqueID="38-004565">
            <title>java.io.File.getCanonicalFile throwing SecurityException</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004565</link>
            <description>Hi there Guys,&lt;br /&gt; &lt;br /&gt;I'm just being preemptive here, cos you know how things work in dev, and then you move it into test, and things that were always working on your machine stop working. ;-)&lt;br /&gt; &lt;br /&gt;I was wondering, Why, or rather, under which conditions would a SecurityException be thrown when calling getCanonicalFile, or getCanonicalPath from the File class. Currently I am doing this in dev, and it's working no probs. I am just wondering why this would happen, and if it does happen, what I can do to stop this from happening.&lt;br /&gt; &lt;br /&gt;The java doc says... "If a required system property value cannot be accessed, or if a security manager exists and its java.lang.SecurityManager#checkRead method denies read access to the file"&lt;b...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004565</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004565Darryl Nortje</comments>
            <author/>
            <pubDate>Tue, 13 May 2008 02:27:10 MDT</pubDate>
        </item>
        <item uniqueID="38-004564">
            <title>problem while printing international characters using system.out.print</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004564</link>
            <description>Hi All,&lt;br /&gt; &lt;br /&gt;I am reading a txt file which contains latin + japanese characters.&lt;br /&gt;I am using inputstreamreader (with encoding mentioned as utf-8) to read the content into a string. Then I printing the string using System.out.println(String). But i only see something like ????? as output.&lt;br /&gt; &lt;br /&gt;I think my program only displays those charcters properly which as per system's default encoding.&lt;br /&gt; &lt;br /&gt;How can I fix this?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004564</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004564Pushker Chaubey</comments>
            <author/>
            <pubDate>Mon, 12 May 2008 11:39:08 MDT</pubDate>
        </item>
        <item uniqueID="38-004563">
            <title>Need to find executable from path</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004563</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;My application allows the user to specify an executable to be launched on request. This is working ok when the user specifies the complete path to the executable, but I now have an additional requirement: if the complete path is not specified, find the executable in the system PATH.&lt;br /&gt; &lt;br /&gt;I'm not finding anything in the APIs that lets me do that, though it seems like it should be a pretty straightforward thing to do: any suggestions?&lt;br /&gt; &lt;br /&gt;My current code finds the file on the client system and if it doesn't already exist, tries to download it automatically, like so:&lt;br /&gt; &lt;br /&gt; File exec = new File(this.executable).getCanonicalFile();&lt;br /&gt; if(logger.isDebugEnabled())&lt;br /&gt; {&lt;br /&gt; log...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004563</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004563Chris Loschen</comments>
            <author/>
            <pubDate>Mon, 12 May 2008 08:27:07 MDT</pubDate>
        </item>
        <item uniqueID="38-004562">
            <title>Japanese character set</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004562</link>
            <description>What are the problems one may encounter while using Japanese character set. How can they be solved.&lt;br /&gt; &lt;br /&gt;I came to know that Japanese character set is a 2 byte character set. Will it have any effect on my application which we intend to develop in Japanese.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004562</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004562Anjali S Sharma</comments>
            <author/>
            <pubDate>Mon, 12 May 2008 06:45:07 MDT</pubDate>
        </item>
        <item uniqueID="38-004561">
            <title>Magic behind the serializable interface</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004561</link>
            <description>I was trying to understand the concept behind the java serialization.&lt;br /&gt; &lt;br /&gt;I know that java serialization is required when you want to save state of an object outside JVM. My thinking was that why dont Sun make all classes as Serializable by default? Why serialization is required to persist an object?&lt;br /&gt; &lt;br /&gt;Read more&lt;br /&gt;http://venkatsadasivam.wordpress.com/2008/01/27/what-is-the-magic-serializable-interface-does-in-java/ (http://venkatsadasivam.wordpress.com/2008/01/27/what-is-the-magic-serializable-interface-does-in-java/)</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004561</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004561Venkat Sadasivam</comments>
            <author/>
            <pubDate>Sun, 11 May 2008 06:55:04 MDT</pubDate>
        </item>
        <item uniqueID="38-004560">
            <title>Converting feedfile to utf8 format</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004560</link>
            <description>hi all...i have got utf8 format feed file from the providers. i have edited the feedfile using the java code to delete the dtd content and add some tags to the feedfile. after doing this through java code i am getting junk characters in to feedfile.&lt;br /&gt;what should i do to rectify this?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004560</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004560prasad Vidala</comments>
            <author/>
            <pubDate>Fri, 9 May 2008 05:00:58 MDT</pubDate>
        </item>
        <item uniqueID="38-004559">
            <title>How to I write objects into a gzip file?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004559</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;Can somebody help me to find a way to write objects into a gzip file? I've tried ObjectOutputStream and GZIPOutputStream, it doesn't work me. An example would be really helpful.&lt;br /&gt; &lt;br /&gt;Cheers,</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004559</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004559Andrew Symantec</comments>
            <author/>
            <pubDate>Thu, 8 May 2008 19:42:57 MDT</pubDate>
        </item>
        <item uniqueID="38-004558">
            <title>code output </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004558</link>
            <description>Hey guys, I've been looking at the following website for some good I/O examples. &lt;br /&gt; &lt;br /&gt;http://www.cafeaulait.org/books/javaio2/ (http://www.cafeaulait.org/books/javaio2/)&lt;br /&gt; &lt;br /&gt;Here is the code: &lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;import java.io.*;&lt;br /&gt; &lt;br /&gt;public class StreamPrinter {&lt;br /&gt; &lt;br /&gt; public static void main(String[] args) {&lt;br /&gt; &lt;br /&gt; try {&lt;br /&gt; while (true) {&lt;br /&gt; int datum = System.in.read();&lt;br /&gt; if (datum == -1) break;&lt;br /&gt; System.out.println(datum);&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; catch (IOException ex) {&lt;br /&gt; System.err.println("Couldn't read from System.in!");&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;&lt;br /&gt; &lt;br /&gt;When I run this program ...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004558</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004558Claude Cundiff</comments>
            <author/>
            <pubDate>Mon, 5 May 2008 19:10:48 MDT</pubDate>
        </item>
        <item uniqueID="38-004557">
            <title>Creating a text file using FileWriter</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004557</link>
            <description>I have created a text file using FileWriter.&lt;br /&gt;I can see it properly when i open it with MS-Word,but when i try to open it with notepad or wordpad.&lt;br /&gt;It is not displayed properly.&lt;br /&gt;To print this file, which docflavor should i use?&lt;br /&gt;Whether it is docflavor.INPUT_STREAM.TEXT_PLAIN or wat???</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004557</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004557sudheer raj</comments>
            <author/>
            <pubDate>Mon, 5 May 2008 04:32:46 MDT</pubDate>
        </item>
        <item uniqueID="38-004556">
            <title>IO close() method</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004556</link>
            <description>What exactly does the close() method do for input and output streams? Please use as little jargon as possible.&lt;br /&gt; &lt;br /&gt;I am using Apache POI HSSF to read in an Excel file (this maybe should be on an Apache POI forum, but please tell me what you think). I am trying to figure out when I can close the input stream. &lt;br /&gt; &lt;br /&gt;If I read in a file containing objects, (any type), close the file input stream, then read in more objects from the associated object input stream, what happens?&lt;br /&gt; &lt;br /&gt;Thanks,&lt;br /&gt; &lt;br /&gt;Andy</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004556</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004556Andy Selador</comments>
            <author/>
            <pubDate>Sat, 3 May 2008 14:44:32 MDT</pubDate>
        </item>
        <item uniqueID="38-004555">
            <title>searching a content in a file</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004555</link>
            <description>Hi All,&lt;br /&gt; &lt;br /&gt; suppose,there are(example D drive) some files which are having paragraph ...&lt;br /&gt; &lt;br /&gt; if i give some word in search button..then i submit..now i want the file/files which is having the particular word...&lt;br /&gt; &lt;br /&gt; how to do it?&lt;br /&gt; &lt;br /&gt;please anyone can explain me&lt;br /&gt; &lt;br /&gt;thanks &amp; regards,&lt;br /&gt;seetharaman</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004555</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004555seetharam venk</comments>
            <author/>
            <pubDate>Fri, 2 May 2008 03:32:27 MDT</pubDate>
        </item>
        <item uniqueID="38-004554">
            <title>how to read a line and store the data!</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004554</link>
            <description>For example, the input text file is like this:&lt;br /&gt; &lt;br /&gt;KWAFZRMYC 195.08 s 400 0 &lt;br /&gt;EDWWKTMYC 195.09 s 400 0 &lt;br /&gt;JSQPPHMYC 195.05 s 200 0 &lt;br /&gt;LQHTFMMYC 194.95 b 600 1 &lt;br /&gt;BTQFADMYC b 500 1&lt;br /&gt;ZOOKNLMYC 195.07 b 400 1 &lt;br /&gt;TVZKDZMYC 195.01 b 300 1 &lt;br /&gt; &lt;br /&gt;First of all, how to read read this file line by line?&lt;br /&gt; &lt;br /&gt;After read the file, I need to store them line by line and seperate by space, what data structure recommend, linked list?&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Thanks in advance!</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004554</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004554sheng zhong</comments>
            <author/>
            <pubDate>Fri, 2 May 2008 03:08:27 MDT</pubDate>
        </item>
        <item uniqueID="38-004553">
            <title>security restrictions of file I/O?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004553</link>
            <description>Making a java desktop app that will be deployed in a jar file to multiple operating systems. I want to write a file to disk so that after the user shuts the app down and then later fires it back up again I can then read the file back in from the disk. Seems like this was troublesome years ago because the security api required certain settings in order to give the app access to the disk. I'm just asking a general question because I won't be able to do extensive testing on various hardware and op systems - is it still the case? that security can get in the way of file I/O? Do I need to be concerned about this?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004553</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004553Wally Flint</comments>
            <author/>
            <pubDate>Thu, 1 May 2008 21:20:26 MDT</pubDate>
        </item>
        <item uniqueID="38-004552">
            <title>Retrieving images from a folder</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004552</link>
            <description>Hi Guys, &lt;br /&gt; I'm trying out a program which requires accessing of the images from a folder, and i'm not so familiar with files. Can you show me how???&lt;br /&gt; Thanks a ton</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004552</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004552Nacho Hmar</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 05:58:22 MDT</pubDate>
        </item>
        <item uniqueID="38-004551">
            <title>Gettting Error!!</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004551</link>
            <description>I am using following code to transfer one file to other system:&lt;br /&gt; &lt;br /&gt;import java.io.File;&lt;br /&gt;import java.io.FileInputStream;&lt;br /&gt;import java.io.FileOutputStream;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;import java.io.OutputStream;&lt;br /&gt;import java.net.URL;&lt;br /&gt;import java.net.URLConnection;&lt;br /&gt;import java.text.SimpleDateFormat;&lt;br /&gt;import java.util.StringTokenizer;&lt;br /&gt;import java.util.*;&lt;br /&gt;import sun.net.TelnetInputStream;&lt;br /&gt;import sun.net.ftp.FtpClient;&lt;br /&gt;import sun.net.www.protocol.http.HttpURLConnection;&lt;br /&gt;import java.io.*;&lt;br /&gt; &lt;br /&gt;public class FtpToServer extends FtpClient &lt;br /&gt;{&lt;br /&gt;public static int BUFFER_SIZE = 10240;&lt;br /&gt;private static FtpClient m_client;&lt;br /&gt;privat...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004551</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004551hemant chaudhary</comments>
            <author/>
            <pubDate>Tue, 29 Apr 2008 05:36:18 MDT</pubDate>
        </item>
        <item uniqueID="38-004550">
            <title>Writing Big Vector to file.</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004550</link>
            <description>Dear Friends,&lt;br /&gt;I have one input text file with size around 800MB, which contains the capital word letters and small letter words. I am reading the text file and capturing all the capital letter words in to vector(obvioiusly size of this vector is big, let us assume 700MB).&lt;br /&gt; &lt;br /&gt;now my problem is if i want to remove the dupicates in vector and i need to sort the vector, it is going to delay.. delay.... due to vast size.&lt;br /&gt;it is taking so much time to process. if i try with small file eveything is ok!!!&lt;br /&gt; &lt;br /&gt;for example ,if it is successful, i need to write this big size vector into flat file.&lt;br /&gt;but this process is taking so much time to do that.&lt;br /&gt;so please suggest the best way to do my scenario.&lt;br /&gt; &lt;br /&gt;thanks...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004550</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004550T sandya</comments>
            <author/>
            <pubDate>Tue, 29 Apr 2008 02:22:18 MDT</pubDate>
        </item>
        <item uniqueID="38-004549">
            <title>write into a file?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004549</link>
            <description>How to write into a file under linux environment? The file is going to be written under /home/testing/temp&lt;br /&gt; with a file as "newFile.txt"&lt;br /&gt;How do I proceed?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004549</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004549Gopu Akraju</comments>
            <author/>
            <pubDate>Mon, 28 Apr 2008 05:52:15 MDT</pubDate>
        </item>
        <item uniqueID="38-004548">
            <title>how to convert a Bytearray input stream to String</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004548</link>
            <description>Hi, I have to convert a ByteArryinputString to a string and then decode the string to ByteArrayInputStream. &lt;br /&gt; &lt;br /&gt;here is the code i am using to convert the Byte array input stream to String.&lt;br /&gt; &lt;br /&gt;generatedInputStream is of type ByteArrayInputStream:&lt;br /&gt; &lt;br /&gt;if(generatedInputStream != null){&lt;br /&gt;byte[] buffer = new byte[generatedInputStream.available()];&lt;br /&gt;int bytesRead;&lt;br /&gt;try {&lt;br /&gt;bytesRead = generatedInputStream.read(buffer);&lt;br /&gt;while (bytesRead &amp;gt;= 0)&lt;br /&gt;{&lt;br /&gt;generatedOutputStream.write(buffer, 0, bytesRead);&lt;br /&gt;bytesRead = generatedInputStream.read(buffer);&lt;br /&gt;}&lt;br /&gt;} catch (IOException e) {&lt;br /&gt;// TODO Auto-generated catch block&lt;br /&gt;throw new SSPApplicationException();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if(ge...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004548</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004548venkata satya prasad Kolla</comments>
            <author/>
            <pubDate>Sun, 27 Apr 2008 00:04:11 MDT</pubDate>
        </item>
        <item uniqueID="38-004547">
            <title>splitting string into 2 variable</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004547</link>
            <description>i manage to read a textfile with my program which is a string that looks like this: stuck in a hole in the backyard;60173317358&lt;br /&gt;i want to save stuck in a hole in the backyard in variable x and 60173317358 in variable y. can anyone tell me how to do this? thanks in advance</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004547</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004547Selva Kumar Sundram</comments>
            <author/>
            <pubDate>Sat, 26 Apr 2008 12:30:09 MDT</pubDate>
        </item>
        <item uniqueID="38-004546">
            <title>Reading file that is updated while reading</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004546</link>
            <description>I am reading a file that is being updated by another app while the reader is reading. I read to the end, then go to sleep for a couple of seconds, then look for new data. I am using BufferedReader in a while loop, and readLine() to get the data. Is there a way to read to the end of the file, then wait until the reader 'wakes up' when something new is there, rather than having to sleep?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004546</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004546Brad Walton</comments>
            <author/>
            <pubDate>Sat, 26 Apr 2008 03:10:08 MDT</pubDate>
        </item>
        <item uniqueID="38-004545">
            <title>logging byte[]</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004545</link>
            <description>Hello, I have a document object that returns a byte[] when I do getContents(), I want to log the contents of this byte[](this has post script data in it) to our log file. How do I it?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004545</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004545Santosh Ramachandrula</comments>
            <author/>
            <pubDate>Fri, 25 Apr 2008 08:58:06 MDT</pubDate>
        </item>
        <item uniqueID="38-004544">
            <title>Junk value when converting .doc t .txt file </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004544</link>
            <description>import java.io.*;&lt;br /&gt;class try2&lt;br /&gt;{&lt;br /&gt;public static void main(String[] args)&lt;br /&gt; &lt;br /&gt; {&lt;br /&gt; try&lt;br /&gt; {&lt;br /&gt; java.io.File file = new File("C:/read1.doc");&lt;br /&gt; FileInputStream fis = new FileInputStream(file);&lt;br /&gt; byte bytes[] = new byte[fis.available()];&lt;br /&gt; fis.read(bytes);&lt;br /&gt; fis.close();&lt;br /&gt; System.out.println("Hello World! "+bytes.length);&lt;br /&gt; &lt;br /&gt; FileOutputStream fis1=new FileOutputStream("C:/read2.txt");&lt;br /&gt; fis1.write(bytes);&lt;br /&gt; fis1.close();&lt;br /&gt; }&lt;br /&gt; catch(Exception e)&lt;br /&gt;{&lt;br /&gt; System.out.println(e);&lt;br /&gt;}&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;i am converting doc file to txt file.The file is getting created.The value...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004544</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004544anu shree</comments>
            <author/>
            <pubDate>Fri, 25 Apr 2008 03:26:05 MDT</pubDate>
        </item>
        <item uniqueID="38-004543">
            <title>Why a file not picked up?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004543</link>
            <description>Hi,All&lt;br /&gt; I run into a strange problem. &lt;br /&gt; My thread (continuous running) keeps scanning files under 90 folders. It will call another program to process the file if there is any new coming file. It works very well except one situation: the thread doesn't recognize a file when the file is in the process of transfering (or copying). That's understandable because this new file is in use by another source. However the thread still is not able to sense thie file even in next runs. But it can find other files as long as that situation (described as above) doesn't happen to these files.&lt;br /&gt; Any comments? Thanks a lot for your help.&lt;br /&gt; Y.P</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004543</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004543Yongping Wang</comments>
            <author/>
            <pubDate>Thu, 24 Apr 2008 09:36:03 MDT</pubDate>
        </item>
        <item uniqueID="38-004542">
            <title>Polling for a file on ftp using Java</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004542</link>
            <description>hi,&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;I have a file on my ftp server. I have to check if any file exists in the ftp directory, for every interval of 5 seconds.Could any one let me know, what is the best way to do it(file polling for every 5 secs) through java ?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004542</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004542Vijay G Gandhi</comments>
            <author/>
            <pubDate>Thu, 24 Apr 2008 06:46:02 MDT</pubDate>
        </item>
        <item uniqueID="38-004541">
            <title>quick question: bufferedreader</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004541</link>
            <description>if you read() a character in the buffer, how do you check for end of line? is it null. just need to make sure. thanks.&lt;br /&gt; &lt;br /&gt;nikita</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004541</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004541f. nikita thomas</comments>
            <author/>
            <pubDate>Thu, 24 Apr 2008 04:46:02 MDT</pubDate>
        </item>
        <item uniqueID="38-004540">
            <title>Limit character read using Reader?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004540</link>
            <description>Hi &lt;br /&gt;I have to read a Clob from oracle, and using Reader API to read. I want to limit amount of character to read because some of them are huge, and when it render to the browser it stop .The following code that I have is read the whole thing, How do i set the limit of character on this&lt;br /&gt;Many thanks in advance&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;public String getClobToString()&lt;br /&gt;{&lt;br /&gt;StringBuffer stf = new StringBuffer();&lt;br /&gt;Clob myclob = obj.getClob()--&amp;gt; this get from database&lt;br /&gt;Reader reader = myclob.getCharacterStream(); --&amp;gt; reading the clob&lt;br /&gt;int charread = 0;&lt;br /&gt;char[] buffer = new char[1024];&lt;br /&gt;while ((charread &amp;lt; r.read(buffer)) !=-1)&lt;br /&gt;{&lt;br /&gt; stf.append(buffer, 0, charread);&lt;br /&gt; r.close()...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004540</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004540jay lai</comments>
            <author/>
            <pubDate>Wed, 23 Apr 2008 11:20:00 MDT</pubDate>
        </item>
        <item uniqueID="38-004539">
            <title>NotSerializableException when i use rmiregistry</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004539</link>
            <description>I am working with Blaze Rule Engine and reading the binary rules file from the service code that is written in Java. &lt;b&gt; I have to use some classes (located in jars) which supports my application and all the classes are serialized.&lt;br /&gt; &lt;br /&gt;after deploying my application as ejb in Oracle Apps, i can use 'rmiregistry' for generating the response. &lt;br /&gt; &lt;br /&gt;so, my application is working perfectly fine without rmiregistry and also giving the proper response........ but when i am using the rmiregistry its giving the following error &lt;/b&gt;&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt; &lt;br /&gt;com.blazesoft.server.base.NdServiceException: Service 'TestPro&lt;br /&gt;ject'. Server 'TestProject' on host 'bnk02cpu000693'.&lt;br /&gt;&lt;b&gt; Error getting Serialize...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004539</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004539pavan kumar seeram</comments>
            <author/>
            <pubDate>Wed, 23 Apr 2008 04:55:59 MDT</pubDate>
        </item>
        <item uniqueID="38-004538">
            <title>how to read a text file within remote ftp directory</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004538</link>
            <description>Dear friends&lt;br /&gt;How to read a text file within remote ftp directory?&lt;br /&gt;My program is this.I have a directory named "Sample Files" on remote ftp server which contains a text file batch2.txt.I want to read that file.Please tell me how to do it.Here is my program:&lt;br /&gt;/*&lt;br /&gt; * Main.java&lt;br /&gt; *&lt;br /&gt; * Created on April 23, 2008, 4:41 AM&lt;br /&gt; *&lt;br /&gt; * To change this template, choose Tools | Template Manager&lt;br /&gt; * and open the template in the editor.&lt;br /&gt; */&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;package javaapplication1;&lt;br /&gt;import com.jscape.inet.ftp.*;&lt;br /&gt;import java.io.BufferedReader;&lt;br /&gt;import java.io.File;&lt;br /&gt;import java.io.FileNotFoundException;&lt;br /&gt;import java.io.FileReader;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.util.D...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004538</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004538Sonal Sharma</comments>
            <author/>
            <pubDate>Wed, 23 Apr 2008 01:09:59 MDT</pubDate>
        </item>
        <item uniqueID="38-004537">
            <title>how to get the last modified time of a text file</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004537</link>
            <description>How to read the last modified time of a text file or a directory in hh:mm:ss format.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004537</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004537Sonal Sharma</comments>
            <author/>
            <pubDate>Tue, 22 Apr 2008 18:31:47 MDT</pubDate>
        </item>
        <item uniqueID="38-004536">
            <title>i want to read a file which has been created by Star Office</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004536</link>
            <description>I have created file by OpenOffice .org and i want to read the content of the file through the program.i am able to read text file and .doc file &lt;br /&gt;what is the difference between office tools and star office and how i should read the file that has created by openoffice.&lt;br /&gt;Please can any one help me</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004536</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004536anu shree</comments>
            <author/>
            <pubDate>Tue, 22 Apr 2008 04:12:24 MDT</pubDate>
        </item>
        <item uniqueID="38-004535">
            <title>Fast indexing / searching of a text file</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004535</link>
            <description>Hi : I am writing programs that read data from massive text files.&lt;br /&gt;What is the best way to do this in java ? Is indexing a possibility and if so what is the way to jump from one index to another ? Thanks, Jay</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004535</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004535jay vas</comments>
            <author/>
            <pubDate>Mon, 21 Apr 2008 09:20:17 MDT</pubDate>
        </item>
        <item uniqueID="38-004534">
            <title>How to write at the end of text file</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004534</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;Every time it is overwritting. rather than adding next line of records.&lt;br /&gt;public void WriteToFile(){&lt;br /&gt; &lt;br /&gt;try{&lt;br /&gt; &lt;br /&gt;FileWriter writer = new FileWriter ("record.txt");&lt;br /&gt; &lt;br /&gt;writer.append(v +"\t");&lt;br /&gt;writer.append(u +"\t");&lt;br /&gt;writer.append(x );&lt;br /&gt; &lt;br /&gt;writer.close();&lt;br /&gt;}catch(IOException ex){&lt;br /&gt;ex.printStacktrace();&lt;br /&gt;}&lt;br /&gt;}</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004534</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004534Myurawagan Poobalasingam</comments>
            <author/>
            <pubDate>Sat, 19 Apr 2008 09:22:24 MDT</pubDate>
        </item>
        <item uniqueID="38-004533">
            <title>Fast Access in Binary Files</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004533</link>
            <description>Hello everyone,&lt;br /&gt;I've never dealt with binary files at all, so I'm just looking for a place to get started (and to find out if I'm even barking up the wrong tree).&lt;br /&gt; &lt;br /&gt;Hypothetical (*simplified*) example...&lt;br /&gt;Let's say that starting at 00:00 on 4/18/08, I will start recording the number of users accessing at a web site once every minute. I need to store this data for long term retrieval, and I need very fast access to it to answer questions like.. "How many visitors were there at each minute interval between 5/1/08 08:30 and 5/5/08 15:05?".&lt;br /&gt; &lt;br /&gt;I cannot use a database for a number of reasons, but mainly because it will be too much data for a standard rdbms in our environment (billion+ rows). Remember, the above exam...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004533</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004533jones</comments>
            <author/>
            <pubDate>Fri, 18 Apr 2008 13:48:22 MDT</pubDate>
        </item>
        <item uniqueID="38-004532">
            <title>Serialization &amp;amp; data retrieval</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004532</link>
            <description>Hello. I have written a program that saves JTextField values to a .ser file. As long as the program is still running, I can read those values back into eaxh JTextField. If I close the program, re-open it, and try to read them in again, the JTextFields remain blank. Am I doing something wrong?&lt;br /&gt; &lt;br /&gt;Thanks!</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004532</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004532Howard Bates</comments>
            <author/>
            <pubDate>Fri, 18 Apr 2008 13:34:21 MDT</pubDate>
        </item>
        <item uniqueID="38-004531">
            <title>BufferedImage to File Object</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004531</link>
            <description>Hello!&lt;br /&gt; &lt;br /&gt;I have a BufferedImage/Byte Array and i need to create a file object out of it, however I must not write the data to a file and then read it into a file ....&lt;br /&gt; &lt;br /&gt;So basically I am trying to convert a BufferedImage which is dynamically generated to a instance of File.&lt;br /&gt; &lt;br /&gt;Is there a way to do this?&lt;br /&gt; &lt;br /&gt;Thanks guys!</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004531</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004531Peter Wolfenstein</comments>
            <author/>
            <pubDate>Fri, 18 Apr 2008 11:34:21 MDT</pubDate>
        </item>
        <item uniqueID="38-004530">
            <title>Re-Reading from the stream... </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004530</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;Streams are behaving funny!!! i'll try to give you a gist of the problem instead of just blindly copy pasting the code...&lt;br /&gt; &lt;br /&gt;I have,&lt;br /&gt;BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));&lt;br /&gt;DataInputStream in_raw = new DataInputStream(socket.getInputStream());&lt;br /&gt; &lt;br /&gt;Somewhere in the code, in a while ( true ) loop i do this:-&lt;br /&gt;while ( true ) {&lt;br /&gt; String line = in.readLine();&lt;br /&gt; if ( line.equals("aabbcc") )&lt;br /&gt; break;&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;again; below i have another while ( true ) loop:-&lt;br /&gt;while ( true ) {&lt;br /&gt; for ( .. ; .. ; .. ) {&lt;br /&gt; curr_byte = (byte)in_raw.read();&lt;br /&gt; if ( curr_byte == -1 )&lt;br /&gt; break;&lt;...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004530</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004530Nev Mehta</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 16:07:02 MDT</pubDate>
        </item>
        <item uniqueID="38-004530">
            <title>Re-Reading from the stream... </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004530</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;Streams are behaving funny!!! i'll try to give you a gist of the problem instead of just blindly copy pasting the code...&lt;br /&gt; &lt;br /&gt;I have,&lt;br /&gt;BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));&lt;br /&gt;DataInputStream in_raw = new DataInputStream(socket.getInputStream());&lt;br /&gt; &lt;br /&gt;Somewhere in the code, in a while ( true ) loop i do this:-&lt;br /&gt;while ( true ) {&lt;br /&gt; String line = in.readLine();&lt;br /&gt; if ( line.equals("aabbcc") )&lt;br /&gt; break;&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;again; below i have another while ( true ) loop:-&lt;br /&gt;while ( true ) {&lt;br /&gt; for ( .. ; .. ; .. ) {&lt;br /&gt; curr_byte = (byte)in_raw.read();&lt;br /&gt; if ( curr_byte == -1 )&lt;br /&gt; break;&lt;...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004530</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004530Nev Mehta</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 16:01:02 MDT</pubDate>
        </item>
        <item uniqueID="38-004526">
            <title>get content of html</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004526</link>
            <description>Hi there,&lt;br /&gt; &lt;br /&gt;I need to get The content of a site (that I know how to do).&lt;br /&gt; &lt;br /&gt;The problem is that I first have to send some parameters to validade, then send another url which will get the url I want to get, it's like this:&lt;br /&gt; &lt;br /&gt;http://www3.sitedomain.com/csp/web1/validate.csp?Loggin=1512800710&amp;Pass=21ta93&amp;EP=PAC&amp;LCL=SL (http://www3.sitedomain.com/csp/web1/validate.csp?Loggin=1512800710&amp;Pass=21ta93&amp;EP=PAC&amp;LCL=SL)&lt;br /&gt; &lt;br /&gt;Loggin, Pass, EP and SL are the parameters to the first url. then I Have to enter:&lt;br /&gt; &lt;br /&gt;http://www3.sitedomain.com/csp/web1/display.csp?LIS=1 (http://www3.sitedomain.com/csp/web1/display.csp?LIS=1)&lt;br /&gt; &lt;br /&gt;LIS is the parameter to the url. after entering these two url I will have the ht...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004526</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004526Mike Phillip</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 12:43:01 MDT</pubDate>
        </item>
        <item uniqueID="38-004529">
            <title>EOF comes in different places</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;I'm reading a file a byte at a time (always the same) and sometimes I read with no problem, other times it gives me an EOF in different executions of the loop.&lt;br /&gt;Can anyone give me a hint why this erratic behavior happens?&lt;br /&gt; &lt;br /&gt;Here is the code:&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;public byte[] readFromFile(String fileName) throws ClientException {&lt;br /&gt;byte[] result = null;&lt;br /&gt;long len;&lt;br /&gt;File file = new File(fileName);&lt;br /&gt;if (utils.testFile(file)) {&lt;br /&gt;len = file.length();&lt;br /&gt;result = new byte[(int)len];&lt;br /&gt;FileInputStream fis;&lt;br /&gt;try {&lt;br /&gt;fis = new FileInputStream(fileName);&lt;br /&gt;} catch (FileNotFoundException fnfe) {&lt;br /&gt;// This should never happen&lt;br /&gt;String errMessage = "File &#xFFFD;" + fileN...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529Frederico Bruno Ferreira</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 11:55:01 MDT</pubDate>
        </item>
        <item uniqueID="38-004529">
            <title>EOF comes in different places</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;I'm reading a file a byte at a time (always the same) and sometimes I read with no problem, other times it gives me an EOF in different executions of the loop.&lt;br /&gt;Can anyone give me a hint why this erratic behavior happens?&lt;br /&gt; &lt;br /&gt;Here is the code:&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;public byte[] readFromFile(String fileName) throws ClientException {&lt;br /&gt;byte[] result = null;&lt;br /&gt;long len;&lt;br /&gt;File file = new File(fileName);&lt;br /&gt;if (utils.testFile(file)) {&lt;br /&gt;len = file.length();&lt;br /&gt;result = new byte[(int)len];&lt;br /&gt;FileInputStream fis;&lt;br /&gt;try {&lt;br /&gt;fis = new FileInputStream(fileName);&lt;br /&gt;} catch (FileNotFoundException fnfe) {&lt;br /&gt;// This should never happen&lt;br /&gt;String errMessage = "File &#xFFFD;" + fileN...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529Frederico Bruno Ferreira</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 11:47:01 MDT</pubDate>
        </item>
        <item uniqueID="38-004529">
            <title>EOF comes in different places</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;I'm reading a file a byte at a time (always the same) and sometimes I read with no problem, other times it gives me an EOF in different executions of the loop.&lt;br /&gt;Can anyone give me a hint why this erratic behavior happens?&lt;br /&gt; &lt;br /&gt;Here is the code:&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;public byte[] readFromFile(String fileName) throws ClientException {&lt;br /&gt;byte[] result = null;&lt;br /&gt;long len;&lt;br /&gt;File file = new File(fileName);&lt;br /&gt;if (utils.testFile(file)) {&lt;br /&gt;len = file.length();&lt;br /&gt;result = new byte[(int)len];&lt;br /&gt;FileInputStream fis;&lt;br /&gt;try {&lt;br /&gt;fis = new FileInputStream(fileName);&lt;br /&gt;} catch (FileNotFoundException fnfe) {&lt;br /&gt;// This should never happen&lt;br /&gt;String errMessage = "File &#xFFFD;" + fileN...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529Frederico Bruno Ferreira</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 11:15:01 MDT</pubDate>
        </item>
        <item uniqueID="38-004529">
            <title>EOF comes in different places</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;I'm reading a file a byte at a time (always the same) and sometimes I read with no problem, other times it gives me an EOF in different executions of the loop.&lt;br /&gt;Can anyone give me a hint why this erratic behavior happens?&lt;br /&gt; &lt;br /&gt;Here is the code:&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;public byte[] readFromFile(String fileName) throws ClientException {&lt;br /&gt;byte[] result = null;&lt;br /&gt;long len;&lt;br /&gt;File file = new File(fileName);&lt;br /&gt;if (utils.testFile(file)) {&lt;br /&gt;len = file.length();&lt;br /&gt;result = new byte[(int)len];&lt;br /&gt;FileInputStream fis;&lt;br /&gt;try {&lt;br /&gt;fis = new FileInputStream(fileName);&lt;br /&gt;} catch (FileNotFoundException fnfe) {&lt;br /&gt;// This should never happen&lt;br /&gt;String errMessage = "File &#xFFFD;" + fileN...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529Frederico Bruno Ferreira</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 11:13:01 MDT</pubDate>
        </item>
        <item uniqueID="38-004529">
            <title>EOF comes in different places</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;I'm reading a file a byte at a time (always the same) and sometimes I read with no problem, other times it gives me an EOF in different executions of the loop.&lt;br /&gt;Can anyone give me a hint why this erratic behavior happens?&lt;br /&gt; &lt;br /&gt;Here is the code:&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;public byte[] readFromFile(String fileName) throws ClientException {&lt;br /&gt;byte[] result = null;&lt;br /&gt;long len;&lt;br /&gt;File file = new File(fileName);&lt;br /&gt;if (utils.testFile(file)) {&lt;br /&gt;len = file.length();&lt;br /&gt;result = new byte[(int)len];&lt;br /&gt;FileInputStream fis;&lt;br /&gt;try {&lt;br /&gt;fis = new FileInputStream(fileName);&lt;br /&gt;} catch (FileNotFoundException fnfe) {&lt;br /&gt;// This should never happen&lt;br /&gt;String errMessage = "File &#xFFFD;" + fileN...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529Frederico Bruno Ferreira</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 11:05:01 MDT</pubDate>
        </item>
        <item uniqueID="38-004529">
            <title>EOF comes in different places</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;I'm reading a file a byte at a time (always the same) and sometimes I read with no problem, other times it gives me an EOF in different executions of the loop.&lt;br /&gt;Can anyone give me a hint why this erratic behavior happens?&lt;br /&gt; &lt;br /&gt;Here is the code:&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;public byte[] readFromFile(String fileName) throws ClientException {&lt;br /&gt;byte[] result = null;&lt;br /&gt;long len;&lt;br /&gt;File file = new File(fileName);&lt;br /&gt;if (utils.testFile(file)) {&lt;br /&gt;len = file.length();&lt;br /&gt;result = new byte[(int)len];&lt;br /&gt;FileInputStream fis;&lt;br /&gt;try {&lt;br /&gt;fis = new FileInputStream(fileName);&lt;br /&gt;} catch (FileNotFoundException fnfe) {&lt;br /&gt;// This should never happen&lt;br /&gt;String errMessage = "File &#xFFFD;" + fileN...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=38&amp;t=004529Frederico Bruno Ferreira</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 10:41:01 MDT</pubDate>
        </item> 
    </channel>
</rss>
