File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FileConnection

 
T Deepu
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there any way to reset a DataInputStream obtained by using FileConnection.openDataInputStream(). I tried the following code but it returned java.io.IOException: mark/reset not supported.

fc = (FileConnection)Connector.open("file:///fs/test",Connector.READ);
DataInputStream dis = fc.openDataInputStream();
System.out.println("1 "+(char)dis.read());
dis.reset();
System.out.println("2 "+(char)dis.read());
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic