Suppose i execute a command in java using the exec() function and i store the reference in a Process . How do i write into the input stream of that process
Process ...
|
Does anyone know what I should use to play a video in Java, from an InputStream?
I get the video from a SOAP message, and I don't want to save it to ... |
I am trying to read an HTML file which is encoded in EUC-KR from a URL. When I compile the code inside the IDE I get the desired output, but when ... |
I have a Java-app with an InputStream, which is copying data to an OutputStream. I want to compress the data from the InputStream using FreeArc, before writing it to the OutputStream. ... |
i have a project that involve the streaming of the image of a running program.
the program can be anything, a video player, a stock control, with any type of visual stuff ... |
Using Java NIO use can copy file faster. I found two kind of method mainly over internet to do this job.
public static void copyFile(File sourceFile, File destinationFile) throws IOException {
...
|
I have created a tailing program to watch a log file that is frequently updated. I wanted to use the new NIO stuff in Java seven to wait for the ... |
|
I have some code that does a Runtime exec and parses the results. On linux and Windows7, the code works fine for parsing the system commands, but on Win XP ... |
I have an external app I need to drive by sticking data in its stdin - I create the process and grab the streams accordingly (see below). On unix, this works fine, but on Windows I'm getting java.lang.IOException: The pipe is being closed as soon as I try to write a second batch of data to it (I don't close the ... |
File.lastModified() javadoc says - A long value representing the time the file was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970), or 0L if the file does not exist or if an I/O error occurs But this method is rounding off the value on the Linux, to its nearest second unlike windows. (for example if a ... |
[Susan]: The first approach below is okay but not the second one. What exactly is wrong with the second? Does it throw an exception? If so, what's the error message? Or does somethign else go wrong? [Susan]: No, but that's what I'm actually wondering. If I don "12345.xml" it will create the file if it doesn't exist. Why not in this ... |
When i call File.createTempFile() on a Win7 system it throws the following exception. This happens when i run my application as a windows service. If i run the application just as a simple java application then it works fine. java.io.IOException: The system cannot find the path specified at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method) at java.io.File.checkAndCreate(Unknown Source) at java.io.File.createTempFile(Unknown Source) at java.io.File.createTempFile(Unknown Source) at ... |
When i call File.createTempFile() on a Win7 system it throws the following exception. This happens when i run my application as a windows service. If i run the application just as a simple java application then it works fine. java.io.IOException: The system cannot find the path specified at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method) at java.io.File.checkAndCreate(Unknown Source) at java.io.File.createTempFile(Unknown Source) at java.io.File.createTempFile(Unknown Source) at ... |
By clicking a submit button i'm calling a javascript in a jsp which uses "window.open" function and opens a jsp. In this jsp i call a function for opening a pdf file using "document.location.href". in this i have specified the URL to open this pdf. Now i want that if after this pdf is opened, i again chose some option and ... |
i am currently running a windows machine and linux machine on the same network connected by a linksy wrt45g router. i am trying to use avtransmit2.java and avreceive2.java to stream a video from one computer to the other and i can't get it to go from either win to linux or linux to win. i am able to send information from ... |
Hi all, I've a simple file poller that listens for files created in a specific folder. I noticed different results when the producer creates files within the same second and I run the poller under windows or under unix (I tried under solaris & under AIX). To test this scenario I wrote a simple FileProducer that creates files and lists the ... |
Thank you for your reply. In fact the code inside the read loop create an object DicEntry that has three members each members receiving a part of the read line. It seems not to create problem as the program always return from its constructors with a valid value. But what is interesting is the following: If instead of creating DicEntries and ... |
For 1 & 2... this is just a sample, i'm not "worried" about those sizes yet. I am looking at this in debug. #3 doesn't solve the problem. NIO provides us with the speed and a few other things that we are looking for. We actually went through and explicity re-saved the file in Linux as UTF-8 and it worked on ... |