data « API « Java I/O Q&A





1. Open Source data streaming engine    stackoverflow.com

Are there any open source data streaming products for publishing and subscribing to objects? A commercial example is SwissRisk Slingshot

2. InputStream read doesn't read the data    stackoverflow.com

I'm having an issue reading from a java input stream. I have a buffer of size 1024, and an input stream of size 29k-31k. I read the inputStream in a loop, ...

3. How do i check if inputstream contains no data?    stackoverflow.com

I am using the javax.comm package to perform read and write operations on the SerialPort. I have created an object of type InputStream as InputStream in; My question is ....

  1. Irrespective of data availibility ...

4. How do i check if inputstream contains no data?    stackoverflow.com

I am using the javax.comm package to perform read and write operations on the SerialPort. I have created an object of type InputStream as InputStream in; My question is ....

  1. Irrespective of data availibility ...

5. Capture data read from file into string stream Java    stackoverflow.com

I'm coming from a C++ background, so be kind on my n00bish queries... I'd like to read data from an input file and store it in a stringstream. I can accomplish this ...

6. Can i write to data output stream after reading response from data input stream?    stackoverflow.com

i want to do a client-server activity like this: 1. first the client sends/writes to output stream 2. the server responses with some data that will be read with input stream 3. after receiving ...

7. Data persistance with BufferedReader and PrintWriter?    stackoverflow.com

I have this simple application with a couple of classes which are all related. There's one, the main one, for which there is only one instance of. I need to save ...

8. Are there free realtime financial data feeds since the demise of OpenQuant?    stackoverflow.com

Now that the oligopole of market data providers successfully killed OpenQuant, does any alternative to proprietary and expensive subscriptions for realtime market data subsist? Ideally I would like to be able to ...

9. Skip creating file in FileOutputStream when there is no data in Inputstream    stackoverflow.com

This is a logging function which logs error stream from the execution of an external program. Everything works fine. But I do not want to generate the log file when there ...





10. Need Help Reading Data From Inputstream    stackoverflow.com

I have a robot and a GUI application running on a GUI. I have a while loop on the robot side that is constantly sending data to the GUI. Before i send ...

11. Need Help Again Reading Data From Inputstream    stackoverflow.com

Yesterday i posted a question about a problem i had concerning inputstream reading and i was helped. I find myself in similar situation but this time i know that I am doing ...

12. Problem of reading data from a website    stackoverflow.com

I write an application, that parse data from boards on the airport sites - Sheremetyevo (http://svo.aero/timetable/today/) and Domodedovo (http://www.domodedovo.ru/ru/main/airindicator/flightnew/). I create an object URL with the link of the site. Next, ...

13. Binary I/O Classes (Summing all the integers in a binary data file)    stackoverflow.com

Could someone please help me through this problem? I'm not really good with the binary I/O classes.

Suppose a binary data file named Exercise 13b_1.dat has been created using writeInt(int) ...

14. Detecting change in streaming data    stackoverflow.com

I have a streaming set of values that I would like to analyze for abrupt changes and possibly ignore spikes/noise in the data. I've looked at moving averages, winsorised means and ...

15. Buffered classes and sending/receiving data    stackoverflow.com

In the following question are the bytes handled by the Buffered classes such that the File is implicitely cut up into smaller blocks or are the bytes sent all in one ...

16. Java: Delete specific data using ObjectOutputStream    stackoverflow.com

I am currently trying to write a program to store data about people into a .dat file. The program must be able to add entries, display entries, and delete entries (all ...





17. Data streaming between two processes    stackoverflow.com

I have two java processes and I have to write data generated from one process as an input to the other java process. The data stream generated will be of the ...

18. Non-straightforward handling of stream data    stackoverflow.com

Hello Stackoverflow community, The issues that I have is connected with particular case of stream data handling in Java. I have a deal with implementation of HTTP client (that will have enough ...

19. Why is this data.txt file deleted whenever I restart the program?    stackoverflow.com

I have a simple txt file that will save only 1 word, but whenever I restart the program everything inside the data.txt is deleted - I don't know why? The whole class ...

20. In Java, when writing to a file with DataOutputStream, how do I define the Endian of the data being written?    stackoverflow.com

I'm using DataOutputStream to write to a file, however I want to change the endian of the data. This is how i'm writing the byte data to the file (it outputs ...

21. Inserting data in RandomAccessFile and updating index    stackoverflow.com

I've got a RandomAccessFile in Java where i manage some data. Simplified: At the start of the file i have an index. (8 byte long value per dataset which represents the offset ...

22. Mocking data sequences through InputStream and OutputStream    stackoverflow.com

I've designed Java class that implements some server protocol. For example, it has getProtocolVersion() method, which return latest protocol version. Object of this class is connected to the server through InputStream ...

23. Write data to a file from a BufferedReader?    stackoverflow.com

In Java... I have data stored in a BufferedReader. (I got it as a response to an HTTP post request.) How do I write this (binary) data to a file? I know how to ...

24. Reading data in Java    stackoverflow.com

What's the difference between using a BufferedReader and a BufferedInputStream?

25. Reading data from a File while it is being written to    stackoverflow.com

I'm using a propriatery Java library that saves its data directly into a java.io.File, but I need be able to read the data so it's directly streamed. Data is binary, some ...

26. Java data streaming class selection    stackoverflow.com

There are too many types of data streaming classes in the Java API. I would like to use a simple binary reading class that would allow for streaming a file locally ...

27. Structured data file reader class    stackoverflow.com

Is there any class provided in the Java standard API that allows file structure elements to be described, like headers and records, according to the data types that are found in ...

28. What's the most efficient way to add data mid way through a stream of bytes?    stackoverflow.com

I've been making an image rescaler that uses the ImageIO library in Java to convert them to a buffered image. Unfortunately it doesn't recognise every type of JPEG that I ...

29. Java - cannot read back int from data file after writing    stackoverflow.com

I am trying to write a char[] and then an int, but it caused IOException when I try to read back the int. What I am really trying to do ...

30. Java: InputStream conventions for data availability, closed state, etc    stackoverflow.com

I have an InputStream that is set up to handle local files, but want to add the ability to read from a file over a network at a later time. I ...

31. Not able to get whole requested streaming data    stackoverflow.com

I want to read requested URL data and wants to save it on my local file FileOutputStream outFile In my code i am not getting how to read whole requested URL ...

32. Sending both binary data and strings over the same stream    bytes.com

P: 21 tomPee Hi, I've bumbed into a slight problem now, and I just don't seem to know how to fix it. What I want to do is the following: Send ...

33. Delete data from random access file    coderanch.com

Hi, I am doing program with RandomAccessFile class. I can write data to file and can read data from file. Now, if I want to delete perticular data from file, then is it possible to delete that data from that file. I am really confuse with that. Please help me to getout from this confusion. Thank you very much, Samir

34. Error passing data though outputstream    coderanch.com

35. Passing Data through Streams    coderanch.com

36. getting data from an outputstream    coderanch.com

Hi, I have a requirement where I cannot write the read data to a file simultaneously. Is there a way where I can write the bytes read from servlet input stream to an output stream ( note : not to a file ) temporarily ; and then use the data conatined in this outputstream to write a file?

37. Data Stream and Byte Stream    coderanch.com

A byte stream would be any subclass of InputStream or OutputStream. A data stream probably refers to a DataInputStream or DataOutputStream, which are specific kinds of byte streams which contain methods for converting to or from various data types (int, char, String, Object, and others.). See the API for DataInputStream and DataOutputStream for more info, or read about them in an ...

38. interpret stream data ---- URGENT    coderanch.com

I have a requirement in which i have to read the data sent by C prog as an array. The data is in structure format. How do i interpret the data. Ex: The structure i send has int, float and bmp in it. I will be receiving the stream on client side. How do i get the values. i am using ...

39. Stream data directly into ZipOutputStream?    coderanch.com

Hi guys, Several of our web-apps have a requirement to deliver formatted data files, let's say for example we might have a .txt, a .xml and a .jpeg file of some data that has been extracted from a database. It is easy for us to deliver these by generating them and providing a link, or even to stream them direct to ...

40. trouble data input streams    coderanch.com

41. Streaming out de-encrypted data    coderanch.com

Hi, I have 2 classes "parsing.java" and "enc.java". "parsing.java" parses an xml file "INFO.xml", to get a few attribute values. I'm using SAX parsing. However, "INFO.xml" is encrypted (password based encryption), and needs to be de-encrypted before it can be parsed. So "parsing.java" calls "enc.java" which de-encrypts the xml file, and creates the "readable xml file" say "rINFO.xml". Then the program ...

42. Printwriter not writing complete data    coderanch.com

43. Pass Data to outputstream    coderanch.com

Commands like "su", "passwd" and the like generally don't read passwords from standard input: they open the terminal device and read directly from there. This is how they manage to not echo the password to the terminal when you type it in. It's possible to execute such a program from another program, but only by using ptys directly, not something you ...

44. BufferedWriter and incorrect data...    coderanch.com

I create a file with BufferWriter and use 'myFile.write(small);' where small is an int of value 20000. when I do a BufferedReader on the same file I read back 63. If I increment my writes the file output increments although at some point soon the actual file is containing single character values and is moving up the ascii table(so that if ...

45. Trying to get data stream from one class to another    coderanch.com

I have a class to deserialize data into a stream, here is the method (using SimpleXML btw): public Device readXML(InputStream xml) throws Exception { Serializer serializer = new Persister(); Device device = null; device = serializer.read(Device.class, xml); xml.close(); return device; } Then I have another class that takes an input stream, and uses it to generate a richfaces tree. I doubt ...

46. Help(Handling Data Through Streams)    coderanch.com

Hey Guys. Okay. I have a question regarding reading from server. What does it mean when in a Multi-Client Server, a client sends a request, the server recieves the request, proceses it and then echos it back. The problem is that when it sends data my client doesn't see it. I get "ArrayIndexOutOfBoundsException". I used "String fromServ = in.readLine()" to read ...

47. Data Stream Mining    java-forums.org

48. FileReader reads all data as int    java-forums.org

import java.io.FileReader; import java.io.FileWriter; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.IOException; public class fileComp { public static void main(String args[]) throws IOException { System.out.println("Hello"); FileReader original = null, modified = null; try { original = new FileReader("1.csv"); modified = new FileReader("2.csv"); int line; while ((line = original.read()) != -1) { System.out.println(line); } } finally { if (original == null || modified == ...

49. Writing and Reading Data from a file without BufferedReader    java-forums.org

Write a program to creat a file named "Exercise9_19.txt" if it does not exist. Write 100 integers created randomly into the file using text I/O. Integers are separated by spaces in the file. Read the data back from the file and display the sorted data. Here is my code: Java Code: import java.io.*; import java.util.Random; import java.util.*; public class WritingReadingData { ...

50. Reading and using specific data from a data input stream    forums.oracle.com

**basically this is where I need help, dis.readFloat() is not a particular float value, for the method I want to add every float value from the datafile together as they are read, and then divide them by the number of entries. I can work out the code to count the number of entries but I simply cannot extract the float values ...

51. DataInputStream always has data    forums.oracle.com

I don't want more code. I want more relevant information. You can post code all day but you haven't shown one scrap of information related to your problem. Something must be going wrong for you to have come here to make a post. Some incorrect output or something. Whatever it was, post it! And for better help, write an [SSCCE|http://sscce.org/] Just ...

52. Saving data into files...RandomAccessFile    forums.oracle.com

53. How to trigger so action when ServerletOuput stream writes all data as byte    forums.oracle.com

Hi , I have a servlet which accepts the index , size of a .3gp file in bytes as input parameters. If index=0 ...i am reading whole file into buffered input streame and writing to client as Servlet output steam as bytes. If index !=0 , or index=100 ...say suppose im ommiting first 100 bytes and rading101 byte to till the ...

55. How is the outputstream is getting data.    forums.oracle.com

Please explain how the outputreader is getting data. import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; public class CopyCharacters { public static void main(String[] args) throws IOException { FileReader inputStream = null; FileWriter outputStream = null; try { inputStream = new FileReader("xanadu.txt"); outputStream = new FileWriter("characteroutput.txt"); int c; while ((c = inputStream.read()) != -1) { outputStream.write(c); } } finally { if (inputStream != ...

56. how can i append data to a file stream?    forums.oracle.com

57. Accessing Live data stream    forums.oracle.com

I am really a Java novice but i have this question: I have access to a platform that streams live data on the chart. I log in to the platform via the website i.e i have not downloaded any software locally. The supplier says that data is sent to my local machine as Java Applets so the applets must be on ...

58. Writing data in Random Access File    forums.oracle.com

I was reading something about Random Access File coz I wanted to practice file handling in java. like, writing a data in a random access file, deleting the stored data, updating the stored data and search for a specific data.. I wasn't able to understand the example because the book gave a large program and it's not explained in detail. Is ...

59. external data stream reader exception.    forums.oracle.com

60. BufferedReader with streaming data?    forums.oracle.com

I'm not sure that this is the correct forum to post this in. I'm definitely a newbie with Java, even though I beileve that I have a pretty firm understanding of the basic concepts associated with it, but, since I couldn't find any sort of topic on other Java forums covering this, I beileve that it is probably a more advanced ...

62. how to know inputstream have data ?    forums.oracle.com

63. Read a stream at the same time data is written to it    forums.oracle.com

Hi, I am making a software that streams music over a socket. I receive 32KB byte[] of the music file from the socket and i want to write these to a stream, a stream which i at the same time play using my musicplaying code. How can this be done? I cant seem to find a way to write to a ...

64. How do a Pushback stream with altered data?    forums.oracle.com

I want to have an input stream that i can read from, alter the data read and then push that back into the stream. A PushbackInputStream doesn't work because there is the restriction in size of buffer, so if your alterations of the data make it larger than what you've read (and larger than the free buffer space) it will throw ...

65. how to use data with BufferedReader    forums.oracle.com

hi iam begginer to java and i have a question about BufferedReader.my program take inputs data from the first line of a txt file. in this line there are String, int, doubles and char. how i use this data to my rest of the program. for example the int that take from the text file i want to use it for ...

66. simulating a real time data stream    forums.oracle.com

Hi, I am trying to write an application that reads timestamped GPS observations from a database and delivers them to a port to be accessed by other web services. I am trying to use a DelayQueue to send observations to an output stream when their delay has expired, but currently I can only send all the observations at once. Is there ...

67. segmenting a data stream    forums.oracle.com

Hi, I'm having problems figuring out how I would separate some number of bytes from an inputstream into an array. I found the read(byte[] b) method for inputstream, but that only allows me to have one byte per element in the array if I understand that correctly. Is there an easy way of getting, for example, 10 bytes for each element? ...

70. problem with data output stream    forums.oracle.com

71. get data from Inputstream    forums.oracle.com

72. How to trigger an action when ServerletOuput stream writes all data as byte    forums.oracle.com

Hi , Im having a servlet ,which reads a .3gp file into BufferInputStream and skips some bytes of data so that to serve the requetsed aount of bytes to the client. Im sending those bytes as ServeletOutputStream. How can i trigger an action when entire bytes sent to the client successfully ? Please give me some suggestions to notify the completion ...

73. Streaming data to http    forums.oracle.com

I'm to create an app tasked with extracting data from a database and sending it in the csv format to a server via HTTP. The data should arrive on the server end in a packaged format. Data will be accessed from multiple sql queries, thus multiple csv will need to exist in the package. The trouble is, for testing purposes, I'd ...

74. Buffered Input stream - data corruption    forums.oracle.com

Your problem description that essentially text files are working while binary data type files are not suggests that you are somewhere treating binary data as character data and mangling it. A common way of doing this mistake is to turn some data that is not supposed to be a String into a String.

75. HELP :- Not getting Data From InputStream on SerialPort    forums.oracle.com

In general, using available() method like this is not a good idea since the TX may not have written any bytes yet so available() must returrn zero. You would do better to just do a simple read() which will block until bytes are avaiable or until end of file. Message was edited by: sabre150

76. remote streaming data    forums.oracle.com

Hi, I have 2 applications running on 2 different systems and the application A is supposed to stream to app B some data (for example a content of a text file in A's server). My questions are: does it exist internally something in java SE that supports it? if not, can you suggest me a library for it? Thanks Julio