storage « Development « Java I/O Q&A





1. Really force file sync/flush in Java    stackoverflow.com

How can data written to a file really be flushed/synced with the block device by Java. I tried this code with NIO:

FileOutputStream s = new FileOutputStream(filename)
Channel c = s.getChannel()
while(xyz)
    ...

2. Determining the physical location of a file and the device status in Java    stackoverflow.com

I'm writing a program that has to mantain a large catalog of files. Those may be on different devices and I'd like to know what is the best way to do ...

3. Finding temporary file storage in Java    stackoverflow.com

So I'm writing a Java application that uses Simple to store data as xml file, but it is hellishly slow with big files when it stores on a network ...

4. Multiplatform single-file storage    stackoverflow.com

I need a way to store several images in one/two (some projects seems to us an index too) for both .NET and java. The file-format needs to be easy to decompress ...

5. File Write Vs Memory Storage in Java    stackoverflow.com

I have a requirement where I have to retrieve the contents from excel rows, do some operations write the response in same excel rows using Java class. So I decided to ...

6. Single Instance File Storage with JAVA    stackoverflow.com

I was storing some files based on a checksum but I found a flaw that 2 checksums can be identical sometimes. I always try looking for API instead of reinventing the wheel, ...

7. file as temporary data storage    coderanch.com

Hi all, If my application can not establish connection with the server it is storing 8000 records in files.After connection with the server resumes it sends those records to server one by one and simultaneously deletes those records from the file. So if i use ObjectSerialization then I will not be able to delete a record from the file. Should I ...

8. archiving to backup storage devices    coderanch.com

Hi All I have a scenario where i want to archive some files to a backup device. This process is to be carried out only when some other process completes successfully. The other process(which uses the abov mentioned files) on successful completion logs an entry into a database table. something like this ************************** JOBTABLE id status time -- ------ ----- 11 ...

9. file as temporary data storage    coderanch.com

Hi all, If my application can not establish connection with the server it is storing 8000 records in files.After connection with the server resumes it sends those records to server one by one and simultaneously deletes those records from the file. So if i use ObjectSerialization then I will not be able to delete a record from the file. Should I ...





10. Storage / Retrieval of mandarin from a flat file    coderanch.com

Hi All, I have tried a number of attempts before coming here on the topic I have mentioned. I work on JBoss portal. And my requirement is to have a module which allows you to paste MANDARIN charcters (Example: See, it does not come here !!) in a text box and then save it in a flat file on the ...

11. How to determine file storage size of a String ?    forums.oracle.com

Hi, I have an xml string and i need to truncate the string so that, if it is stored onto disk, the file must be of size 1kb. Pls let me know how can i do this. Below code seams to give me the desired size. Not sure. Pls let me know if this is correct. If not, info about any ...