1. How to tell JVM to wait for the Stream? coderanch.com |
2. what is the difference between Byte and Stream?6 coderanch.com |
3. I/O and Streams coderanch.comHi its the greenhorn again. Well this time i want to learn by my own but first i need your help. Would you recommend me a site that is good to teach a greenhorn like on how to read on a text file and puts it in the java. i know how to do this in LIBERTY BASIC PROGRAMMING but java ... |
4. Regarding Stream Versioning coderanch.com |
5. IPC through streams coderanch.comHi all, I want to use stream based IPC in Java. To test this I am trying to exec unix more filename command from my java code. Interesting thing is commands like ps, man, ls -l execute fine using the code below. But executing more on a big file , which requires enter input from keyboard occasionally fails. I would like ... |
6. Regarding stream unique identifiers coderanch.com |
7. IO Streams as parameters. coderanch.comHi, I am not able to think of any performance related constraints regarding passing streams as parameters. IMHO, it is the responsibility of the block of code taht opened the resource connection/stream to take care of closing it, handling all exceptions thrown in the appropriate fashion during any operations performed on the same. Thanks, Raj. |
8. Simulating byte stream coderanch.comThis is the data I want to put in and then convert to byte stream {time_t = 1268360515647 sizeof the token (2 bytes) token data = "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdddd"} It is difficult to get the real data stream for testing my application, as it only comes from the production environment. I wanted to have such simulated stream for testing purpose. Here I need ... |
9. can we streaming the A/V on the same machine? coderanch.comi am trying to develop a server and client for video stream using RTPS, now the problem is i am working on a stand-alone machine, now i can transmitt the data from the server but when i make my client to listen to the same port where my server is transmitting the data an error is raised stating that Cannot create ... |
10. Question about Char/Byte Streams coderanch.comI have this text file- xanadu.txt In Xanadu did Kubla Khan A stately pleasure-dome decree: Where Alph, the sacred river, ran Through caverns measureless to man Down to a sunless sea. I can use this Char Stream program to copy it to thatone.txt: import java.io.*; public class MoreCopyCharacters{ public static void main(String[]args) throws IOException { BufferedReader life=null; BufferedWriter death=null; try { ... |
11. Positions in Streams coderanch.comNot sure if this is your requirement, Inpustream has methods like mark(int readlimit) and reset() - mark( int readlimit) - marks the current position in the stream with readlimit argument specifying the number of bytes to be allowed before marking them. - reset() - reposition to the point where it was marked. but before using this need to make sure whether ... |
12. CCTV Streaming in java coderanch.comI have this application that i want to write, How do i get the video data from cctv cameras, what do i need to know before starting to program this application? In essence, i will be playing the video real-time, how do i save the incoming stream of data from the camera to a specified video format and subsequently play it/save ... |
13. IO Streams and Characters. coderanch.comHi all, My question is , when we read a file using read() method of InputStream class like InputStream in = new FileInputStream("a.txt"); int b; while((b=in.read() != -1){ system.out.println((char)b) } the read method returns signed bytes whose values vary from 0 to 255. So, we can read a text file containing only ASCII and extended ASCII using streams?(If I don't want ... |
14. Byte streams coderanch.com |
15. How a file in hard disk become byte stream? coderanch.com |
16. Starting a process from a stream coderanch.comHi, I'm looking into writing a license wrapper for a small utility application written in c++. I want the java wrapper to both provide a nice GUI and enforce the license. I imagine that the application will be encrypted and included in the jar-file. A cipher to unchrypt it will be created by the wrapper based on conditions in the license ... |
17. Getting the size of a stream coderanch.comHi, following problem: I have an InputStream which is a media file from a webserver (mp3) which plays fine. I have a JSlider to display the position in the song, that works also fine. But now i want to add a second value over the original slider which represents how many bytes have been downloaded into the buffer for playback. m_audioInputStream ... |
18. What is stream in java? coderanch.comA stream is data that you access in sequence. You could think of it like a train that you watch from a tunnel entrance so that you can just see one car at a time. Or a stream of widgets coming across a conveyor belt requiring you to tighten a screw on each one before it passes by to the next ... |
19. Doubt in using input streams coderanch.comInput streams generally fall into two categories@ - Streams that give you the ability to read from a particular place - Streams that provide a particular interface/functionality Often, you use them in pairs. One that can read from whatever you want to read from, and then a second one wrapping that that provides whatever interface you want. For instance, ByteArrayInputStream is ... |
20. How do I change the information in a binary file streams ? coderanch.comGood evening, I am creating an application you need to create and modify files binary streams. I found no problems to implement the creation of them. As a simple example, I created a method that stores values of type double to a file. But I found problems when I need to include other value at any position of the file ... |
21. I/O stream not working right coderanch.comThe variables x, y, width, height, and adds all are a part in another part of my code, for graphics. Since they are attached to these variables, if something goes wrong, the items do not show up. That part I know for sure is working right. I removed this code and it showed just fine. Anyway here is the output (with ... |
22. I/O unhandle Streams coderanch.com |
23. Audio/Video streaming? coderanch.com |
24. How to get the Stream details while Streamin on live ? coderanch.comI publish a live Stream from client to server. There are many clients (many Streams). Now I want to get the details of that Streaming. So I used Log fields. That fields return some value but I didn't get the stream details.. I use the wowza server for streaming. I tried here My Code: public void onConnectAccept(IClient client) { for(String s ... |
25. byte streams vs character streams coderanch.comHave you checked out the Java I/O tutorial? http://download.oracle.com/javase/tutorial/essential/io/streams.html The basic issue is that characters in Java are two byte Unicode characters. Often when text is stored into a file (for example), it's not pure Unicode but some different. For example, UTF-8 might map characters in the ASCII range to their single byte equivalents, while turning other characters into two or ... |
26. How to know the number of items in your Seralization/Deserialization stream? coderanch.comI'm basically trying to figure out if there is a method to know how many items I've seralized? import java.io.FileOutputStream; import java.io.ObjectOutputStream; import java.io.Serializable; public class Face implements Serializable { //int n; //Face face[] = new Face[n]; public String faceName; public int x, y; public int w, h; public Face() { // this.faceName = ""; this.x = 10; this.y = 10; ... |
27. Streaming Files java-forums.orgread/mark/reset? any chance I could get an example? I dont have any way to get control of the stream as far as I know. Hmm... one thing, what if I used a BufferedReader on a FileInputStream, and continuously called readLine() (or whatever it is, been using scanner lately) on it. In my opinion, that would ensure that I got the new ... |
28. Web portal accessing files on the user's system via the Java I/O stream? java-forums.orgI am looking at a network protocol call the PHP/Java Bridge. This allows me to run PHP and Java concurrently for my web portal. I want to know the possibility that a web portal can gain access to the files on the user's system via the Java I/O stream. The project is to data sync between the web portal and a ... |
29. How do I know that byte of stream is finished? java-forums.orgHello I am new to java , I have been listening streams form a remote device that is sending packets in tcp/ip , I am able to catch the packets but I dont know that when the packets are finished . As we know that in chatting application server or client just waits for an end of file or any termination ... |
30. what is "standard error stream" java-forums.orgReally appreciated of your attention and time. Thanks. But I have an interesting question here. What if error occurred in a file, when reading text from it? E.g. be it math (2/0), mismatching tags etc. Code: BufferedReader in = new BufferedReader(new FileReader("filename")); String str; while ((str = in.readLine()) != null) { System.out.println(str); ..............(working on the streams here)................. } Could it be ... |
31. IO stream java-forums.orghi ^_^ I have code to check if the file or directory can be read i'll display them content, and to check if they can be write so write to file extra sentence but for directory , create a new directory with the name "newDirectory" and create a new file called "newFile" inside that new directory "newDirectory". Otherwise, writing is not ... |
32. Streaming----the big baffle forums.oracle.com |
33. Using Streams to download files forums.oracle.com |
34. Error in encoded stream: needed 4 valid base64 characters but only got 3 be forums.oracle.com |
35. can java be used to stream forums.oracle.comi can use java for fee readers but i have to stream a dvd can i do this with java are there an tutorials. also i it is a bit off java but you will probably be able to help me you know most things here. can i convert a mepg4 into a dvd playable format that can play on a ... |
36. Files and Streams Question forums.oracle.comHi! Java is my first and only language; and I am very new to Java. This is my first somewhat knowledgeable attempt to get a question answered on a forum of any kind. I put a question in this forum about two weeks ago, but I lost it. So, I am very grateful for any comments that can improve my ability ... |
37. Looking for some help on Java IO Streams forums.oracle.com |
38. finding end of stream forums.oracle.comit will print the message ok so its getting the message ok but it will never snap out of the loop i cant use this .close command or my connection will die is there another way to tell if my message and been sent though instead of checking for null can i check for some thing else ? |
39. String from Stream forums.oracle.comI have the following code: CharBuffer aCh = CharBuffer.allocate(1024); int iLen = inputStream.read(aCh); String strData = aCh.subSequence(0, iLen).toString(); After Line 2, iLen = 147 and the aCh buffer has all of my data in it. After line 3 strData has 147 non printable characters in it. do you know why this is? Also input Stream is a bufferedReader. Is this the ... |
40. java stream?? forums.oracle.com |
41. Weird Streaming Problem forums.oracle.comHi, I managed to create an adhoc network between two of my laptops and wrote a program to copy a video file from the other machine if one is not available locally. So lets say there are two machines A{1} and B{2} where 1, 2 are the videos that they have. Now, I am redirecting the request of VLC Player (video ... |
42. Alternative Streaming Protocols forums.oracle.comHi I am researching for my assignment about the following- About RTSP and other alternatives to streaming protocols used to stream multimedia content. Any commercial products available using those protocols Why one protocol may be better than another. Where can I find some contents/information and would be great if could be given some pointers- general stuff, your own experience etc Thanks ... |
43. Online Streaming in mobile forums.oracle.com |
44. Processing of multipart/form-data request failed. Stream ended unexpectedly forums.oracle.comHi All I am using commons-fileupload jar to allow users to upload 10 documents of size 75MB at a time. I've written a servlet for it. It runs fine on local environment but when two users try to upload 10 files of 75MB from internet(Server is at client side) then we get following exception: org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ... |
45. [ Java ] - Exporting A Stream ? forums.oracle.comHi. I have a Java Application that manipulates and starts an applet in a window. (The applet is loaded out of a JAR) The manipulation is crucial, so it can't be deleted. Now, I currently start my java application from my program programmed in Delphi 2009. (Turbo Pascal) My Delphi program extracts some variables from the Java part. Using the JNI ... |
46. building a stream from string forums.oracle.com |
47. streaming result set issue forums.oracle.comThe error message that you posted: Streaming result set com.mysql.jdbc.RowDataDynamic@cf829d is still active. Only one streaming result set may be open and in use per-connection. Ensure that you have called .close() on any active result sets before attempting more queries. .. is very clear on what your problem is. You haven't said much about the code and you only posted a ... |
48. Problem with file stream forums.oracle.comdata send started in port 5000 Data send openedjava.net.DatagramSocket@83cc67 Data send openedjava.net.DatagramSocket@e09713 publicKey 65537 Data send openedjava.net.DatagramSocket@de6f34 Data send openedjava.net.DatagramSocket@156ee8e modulus 596947940769961701206482460397562027930416486106774347835627 637d57588b05292deefbf0131abb0c54ed22b8e2 Data send openedjava.net.DatagramSocket@10d448 Data send openedjava.net.DatagramSocket@e0e1c6 Dec1 637d57588b05292deefb Dec2 f0131abb0c54ed22b8e2 Dec 637d57588b05292deefbf0131abb0c54ed22b8e2 //On receiver side the output is Datareceive started in port 5000 Socket opened in data receivejava.net.DatagramSocket@3e25a5 publicKey 65537 modulus 596947940769961701206482460397562027930416486106774347835627 Dec1 :#Hi>$-g@dI/'b Dec2 G@j3JuY"V Dec :#Hi>$-g@dI/'bG@j3JuY"V ... |
49. Live Streaming - webcam forums.oracle.comAs my final project i am going to develop a system which can live stream the Webcam real time view. Webcam is not connected to the server it is in a normal PC and i want to publish the cam view as a live video through the internet using a free server. I need some guide lines or steps i should ... |
50. All factories fail for the operation "stream" forums.oracle.comI've tried it with both "true" and "false" and they generate the same error. And what's strange is that the app handles other JPG files fine; with this one, it chokes. The file is a valid JPG image -- it opens OK in image editing software. And it's not a huge file; it's about 1.2 MB while the app has uploaded ... |
51. problem in character stream...sound is distorted forums.oracle.com |
52. I/O Stream forums.oracle.comWell, the write is successful if it doesn't throw an exception. You could certainly check for that. However if you write to a buffered stream, and you don't flush the stream, then the data you wrote is just sitting in a buffer somewhere and hasn't all been sent. This is a good bet for being your problem. |
53. How to get the number of records of a streaming result set forums.oracle.comif I iterate for the reason of counting the records, how will I be able to reiterate, to actually process the result set? you see, for now I just use a count(*) query to get the number of records, but that's adding a lot of extra waiting time... not to mention that my result set is about 500.000 records, and I ... |
54. live streaming forums.oracle.com |
55. load a file on classpath as a File, not Stream forums.oracle.comThe goal here was to make the test work by getting a file as a classpath resource. The ClassLoader has all sorts of machinery for loading resources as streams, but none for loading files as resources. The Spring ClassPathResource has a getFile() method. I can instantiate that using ClassPathResource("fileName") and eschew the path. That suits our needs. Edited by: shrndegruv on ... |
56. Extraction of abitrary offset/length Fields from Binary Stream forums.oracle.comI'm developing a decoder to extract data fields from raw (= binary) data. The data can be encoded in any format, for example as [A: 2 bit flag][B: 1 bit flag][C: 4 bit flag][D: 133 *byte*][E: 64 bit int] 01 1 0110 011010101...0 11101...1 I need to be able to extract any of the fields and represent them as binary data. ... |
57. How to Check a stream is compressed or uncompressed forums.oracle.comFor this i am using the following sample code. ZipInputStream zis = new ZipInputStream(inputstream); ZipEntry entry = null; ZipOutputStream zos = new ZipOutputStream(outputstream); if((entry = zis.getNextEntry()) != null){//just bypass the stream to outputstream} else{//do zipping and write it to the o/p stream} However if use the above logic and the incoming stream is not zip stream I am loosing some bytes ... |
58. Pipe or Stream? forums.oracle.comYoungWinston wrote: I'll probably get shot down here, but I would say pipes are lower-level. They usually have a fixed size and will block if more than that amount of data is added before it's consumed. Streams are more designed for conventional reading and writing (eg, to/from files) and have variants that speed up the process (eg, buffering) and read/write recognizable ... |
59. Streaming bits forums.oracle.com |
60. Stream classes forums.oracle.comI have read the stream documentation stuff and think that InputStream and OutputStream are the super classes of all streams. Is this correct? Let me be more specific...I have a method that I want to pass a file and a stream, I want the stream to read and output the file. What kind of stream argument would I have to pass ... |
61. covert stream to bytes forums.oracle.com |
62. Re: java and mpeg4 and streaming forums.oracle.com |
63. Which Stream to use??? Byte Streams, Character Streams, Buffered Stream??? forums.oracle.comWith my Java application I am reading a file which is a sequence of DNA. This file contains a sequences of 100 000 000 characters of A, T, C, G. When I am reading and writing to this file which stream type is the best to choose... There are Byte Streams, Character Streams, Bufrered Streams... My guess is Character Stream but ... |
64. Identifying in Byte stream is ISO forums.oracle.comaminmoco wrote: Is there a way of determing whether a byte stream is ISO set? I have a string which i'm pulling from the database and i need to determine if it is ISO encoded in which case i change the encoding to UTF. Not really. the various ISO-8859 character sets define mappings for 8-bit bytes. You could scan the string ... |
65. Live streaming forums.oracle.comHi, I would like to do some experiments in live streaming p2p. I can use any server and player. So what I need to do is, any peer must be able to connect in the server and play the streaming, as well serve another peers. In other words a peer need to be able to retransmit the streaming that it got ... |
66. Streaming user input forums.oracle.comGood Day, I am working on an application using JTextPane that captures user input and process it word by word as it is typed. The application will buffer user input and everytime a whitespace (space/carriage return) is hit, it will capture the word and put it in a temporary variable for processing and then continue receiving user input. I would like ... |
67. ClasLoader Resource Stream returning null forums.oracle.comHi, I have the following code: package com.unittest; import java.io.*; import java.util.*; public class CreateGhostData { public static void main(String[] args) { try { createData(" |
68. To stream radio? forums.oracle.com |
69. File Download per Stream or other way forums.oracle.comHello! I dont know if you can help me, because i have an very specific question! My Problem! I have an dll in my WebApplication. I want to download this from the server and get it on the client! So i build the Application to a war-file and install it on or Application Server, its a websphere! But i dont know ... |
70. How to stream document to browser forums.oracle.comHi I am trying to trying to write some code, which will take a document id from a jsp, call a servlet, which will then take the id, search the database for it, and then stream the document for the id back to the browser. Say i have found the document, how would i stream this back to the browser? The ... |
71. local class incompatible: stream classdesc serialVersionUID forums.oracle.comI know what you people are going to say: this error occurs when you serialize an object and the classes used to serialize/deserialize the object are different versions. But that is the problem: as far as i know, client/server use the same jar (LITERALLY the same jar, they reside on one machine). But since he gives me two different versions of ... |
72. Serverside streaming. forums.oracle.comFriends, In my current project, i want to save the IE content as an MHT file,and upload that saved file in the server.I have tried methods using VB which will read and save the file in the temporary location in the client machine.Now due to securtiy reasons, i cant go ahead with this approach, i am trying to ge teh content ... |
73. about i/o stream forums.oracle.com |
74. A long Problem about I/O stream, file access, and Strings . forums.oracle.comFor these questions, you will be adding more functionality to the classes that were developed in Assignment 4. You may use your own implementation of the classes, or the model solutions that have been provided, as the starting point for this assignment. You may also use any of the String methods provided by Java, since some of them (namely indexOf ) ... |
75. Please Help: How to "stream" file from fileserver to webserver forums.oracle.comHello, this is probably a rather basic thing, but I dont know how to do it. I have a file server that contains some pdf, .xls, and .htm files. I want to basically pull a file from the file server and display it to the user (without them clicking on a link to the fileserver). It should appear that the file ... |
76. Streaming files: How to avoid security risk? forums.oracle.comHello, I am streaming files from a directory, and the filename is defined by user. I am using the java File class. However, I noticed that the user can do "../../" and navigate away from the page, gaining access to all the files on the server. Any ideas how to avoid that? Thanks |
77. stream of bytes to a class definition? forums.oracle.comI am trying to fathom the answer to the following question. What facilities provide converting a byte stream to a class definition and ensure the type safety of the JVM ? IS this an RMI thing or perhaps regarding Externalisable? If I knew why we would want to do this or what for, perhaps I'd figure it out. Anyone able to ... |
78. Drowning in IO Streams forums.oracle.com |
79. file IO basics more than 1 problem with streams any help? forums.oracle.com(Assumption is user has entered something as an argument) 1. open 2 streams 1 for writing and 1 for reading pointing to the same file! 2. test if the file exists, if it does delete it. 3. open the file for writing. (should i close the writing stream then create and readstream)?? 4. open the file for reading. urther thoughts? |
80. Buffered input/output stream forums.oracle.comHow the buffereing is done in buffered input/output streams? From the API doc I got to know that they use internal buffer to store bytes before they can be read or written. But i found that File input/output stream also have methods like read(byte[]) or write(byte[]). So what is extra in buffered input/ouput streams? Does the phrase "buffered" suggests that bytes ... |
81. filestream - a stream or a file forums.oracle.com |
82. Get String From Stream and append it in the TextArea forums.oracle.com |
83. Java stream forums.oracle.comLike C++ has the Stringstream class which can be used to type convert between any two types, by acting as a buffer stream does java have any class that buffers data which then can be written to any object. For eg: i could convert bytes to a String by writing the byte array to the stream and then using the stream ... |
84. creating stream from bytes forums.oracle.comhi, i have a function A that returns byte[ ] couple of times. Another function B call it and retrieves this byte[ ]. This function should return some stream - InputStrem or OutputStrem, but I shouldn't create a new file od hard drive, it should return ready stream that would be created in a loop from data of bytes returned by ... |
85. confusion about stream API forums.oracle.comI am just starting doing client-server programming, and I/O streams and such, but I was following a tutorial that used a DataOutputStream and a DataInputStream. The client server in that case was just passing text back and forth. But the API says that this stream class was for java primitive types. First off I didn't know String was a java primitive ... |
86. Euro sign not displayed when transmitted through stream forums.oracle.comIn the custom stream, the write() method is defined like this: public void write(int arg0) throws IOException { data[top][j++] = arg0; } where data[][] is an 'int' array. For the string "", if I print the value of data[][], am getting some numbers. How do I verify if the numbers that I get corresponding to the String "" is correct? In ... |
87. difference between streaming and chunking forums.oracle.comHi, I am working in a secure proxy project. Already we implemented chunking funcionality. Chunking meas when client accessing a big file- no need to wait until the total page downloaded(we generally observe status bar to say request is in processing). Depending on the specified chunked size, output will display onto client browser in chunks... Now the requirement is to implement ... |
88. UrlEncode a stream or a Document forums.oracle.com |