File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes FileConnection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "FileConnection" Watch "FileConnection" New topic
Author

FileConnection

T Deepu
Greenhorn

Joined: Jun 22, 2005
Posts: 1
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
 
subject: FileConnection
 
Similar Threads
Please help me!
Basic question about file Creation in J2ME
URLyBird db format
how to read int or any input value entered in console using DataInputStream??
how we can detect end of file from readChar() method