1. Java: Serializing a huge amount of data to a single file stackoverflow.comI need to serialize a huge amount of data (around 2gigs) of small objects into a single file in order to be processed later by another Java process. Performance is kind ... |
2. Serializing BTree to a file stackoverflow.comI'm trying to implement a BTree. I'm pretty much done with the tree and works great for a smaller input which means I've implemented the tree in memory. Now I would ... |
3. Java: unwanted characters at the beginning of a file as result of serialization stackoverflow.comwhen I write a new text file in Java, I get these characters at the beginning of the file:
This is the code:
|
4. How to replace content of a file in java? stackoverflow.comI am writing data to a file using an ObjectOutputStream. I have a class Data which implements Serializable interface. This class has 4 instance variables. I am successfully able to write ... |
5. In Java, how can I create an equivalent of an Apache Avro container file without being forced to use a File as a medium? stackoverflow.comThis is somewhat of a shot in the dark in case anyone savvy with the Java implementation of Apache Avro is reading this. My high-level objective is to have some way to ... |
6. I need to serialize a 2gb file coderanch.comSun's 32-bit JVMs can hold somewhat less than 2GB worth of data in memory. Further, because characters are held as 16-bit Unicode values, a disk file's size might actually double when read in as a Java String. So serialization issues aside, you may have problems just assembling this data structure in the first place, unless you have 64-bit hardware. Consider putting ... |
7. Serialization and Large Files coderanch.comI have this crazy problem I am working on. We've got a proram going that works for small and fair-to-middling sized files but when we try to run it on large files it crashes with an outOfMemory error. I traced the problem back to a section of code that writes to a very large data structure, specifically a vector of vectors ... |
8. serializable not creating end of file coderanch.comHi, I've written a program wich wirtes a vector of custom objects and it works well, the problem is that when I read the file it creates, it never ends. If I try to open the file with vim it says, "no end of file" even the content is rigth, it doesn't have a end of line. Can anyone help me? ... |
9. equals method, hash code, and serializing a file coderanch.com |
10. Serialization without creating the file coderanch.com |
11. Serialization without a file coderanch.comI needed to write a test method for Serialization that does NOT use a file so I came up with the following code: public static UserSession testSerialization(UserSession userSess) throws Exception { // Test serialization PipedOutputStream pos = new PipedOutputStream(); PipedInputStream pis = new PipedInputStream(); pos.connect(pis); ObjectOutputStream oos = new ObjectOutputStream(pos); ObjectInputStream ois = new ObjectInputStream(pis); oos.writeObject(userSess); UserSession newUserSess = (UserSession)ois.readObject(); return ... |
12. file Serialization coderanch.comserial just means you have one pipe, and everything goes through it one at a time. you send the first bit, then the second, then the third, etc. parallel means you have multiple pipes, so you can send more than one thing at a time. if you had 8 pipes, you could send each of the bits from a byte all ... |
13. What is the best way to store data to a file? Serialization? forums.oracle.comFYI: I am some what of a novice programer. I have almost finished my degree but everything I know about Java is self taught (never taken a course in java). Any way here is my question. So I have an example program that I have created. It basically just has three textpanes which also have the ability to contain images. Now ... |