Displaying 14 results from an estimated 14 matches for "getinputstream".
2010 Oct 13
2
total newbie issue with Cortado player using new java 1.6.0_22
...Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Sou...
2005 Aug 16
4
Image from bytes streams
...----------------------
Process p = Runtime.getRuntime().exec("C:/Arquivos de
programas/R/rw1090/bin/Rterm.exe --no-save");
DataOutputStream output = new DataOutputStream(new
BufferedOutputStream(p.getOutputStream()));
DataInputStream input = new DataInputStream(new
BufferedInputStream(p.getInputStream()));
// output.writeBytes("pie(c(50,30,20))"); //Pie graphic
output.writeBytes("plot(1,1)"); // Plot graphic
output.flush();
input.readFully(new byte[200]); // Here I read the "image" bytes.
----------------------------------------------------------------------------...
1999 Oct 06
1
Java interface to R
I have been doing some programming with java servlets for data
collection.
I was wondering if there is a way to connect to the R-server using java
to do data analysis. A java-interface or some connection class.
I think there is some similar facility with SAS, although I have not
looked at it.
Richard Piper
RNS Hospital,
Sydney.
2003 Nov 12
1
Talk with from Java
...main(String[] args) {
try {
Process process = Runtime.getRuntime().exec("R --no-save");
//Process process = Runtime.getRuntime().exec("R --help");
BufferedReader in = new BufferedReader(new
InputStreamReader(process.getInputStream()));
BufferedReader reader = new BufferedReader(new
java.io.InputStreamReader(System.in));
BufferedWriter out = new BufferedWriter(new
OutputStreamWriter(process.getOutputStream()));
String s=null;
String c=null;
while(true) {...
2005 Jul 05
2
Java and R help
Im doing an aplication in Java and i have a program made in R what i
want to launch with Java.
I have the following instructions:
Runtime r = Runtime.getRuntime();
try
{
System.out.println ("Llamada a R...");
p = r.exec(sRutaR);
}
catch (IOException e)
{
System.out.println ("Error lanzando R: " +
2000 May 10
1
R and Java ? [forwarded]
...tputStreamWriter o = new OutputStreamWriter(jproc.getOutputStream());
o.write("a<-c(4,5)\n");
o.write("mean(a)\n");
o.write("quit(\"no\")\n");
o.flush();
String line=null;
BufferedReader reader = new BufferedReader(new
InputStreamReader(jproc.getInputStream()));
while((line = reader.readLine())!=null)
System.out.println(" The line is: " +line);
Thanks in advance,
Cheryl Fernandes (Home): (312) 432 4396, (630) 834 3796
1926 W Harrison Street, (Office): (312) 996 4605
Medical Center Apartments,
Apt# 1202,...
2004 Aug 06
0
Lost ogg sync using jspeex
...ex2PcmAudioInputStream(pin, audioFormat,AudioSystem.NOT_SPECIFIED);
//Socket clientSocket = serverSocket.accept();
//ObjectOutputStream toClient = new ObjectOutputStream(clientSocket.getOutputStream());
//BufferedReader fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
targetDataLine.open(audioFormat,8000);
targetDataLine.start();
//sourceDataLine.open(audioFormat,44100);
//sourceDataLine.start();
double ratio=bufferlength/framelength;
byte[] frame=new byte[framelength];
System.out.println("Entering While...");
System.ou...
2004 Aug 06
0
Lost ogg sync using jspeex
...ex2PcmAudioInputStream(pin, audioFormat,AudioSystem.NOT_SPECIFIED);
//Socket clientSocket = serverSocket.accept();
//ObjectOutputStream toClient = new ObjectOutputStream(clientSocket.getOutputStream());
//BufferedReader fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
targetDataLine.open(audioFormat,8000);
targetDataLine.start();
//sourceDataLine.open(audioFormat,44100);
//sourceDataLine.start();
double ratio=bufferlength/framelength;
byte[] frame=new byte[framelength];
System.out.println("Entering While...");
System.ou...
2008 Oct 31
2
Problem of running R console from Java on linux box
Hi the list:
I can not create R process from Java application with my linux box,
the process never was created, or just terminated immediately after I
called Runtime.getRuntime().exec(...)
The command lines I have tried are(the paths are all correct):
"/bin/sh /usr/bin/R"
"/bin/sh -c /usr/bin/R"
"/usr/lib/R/bin/exec/R"(also set R_HOME=/usr/lib/R)
I
2018 Oct 06
1
TLS handshake failure - Client Helo rejected
....android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:324)
at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:629)
at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:591)
at org.kman.AquaMail.net.h.a(SourceFile:301)
at org.kman.AquaMail.net.e.a(SourceFile:364)
at org.kman.AquaMail.mail.imap.ImapTask.a(SourceFile:57)
at org.kman.AquaMail.mail.imap.ImapTask_ConnectLogin.ac(SourceFile:106)
at org.kman.AquaMail.mail.imap.ImapTask_Sync.a(...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...mat,AudioSystem.NOT_SPECIFIED);<BR> <BR> //Socket clientSocket = serverSocket.accept();<BR> //ObjectOutputStream toClient = new ObjectOutputStream(clientSocket.getOutputStream());<BR> //BufferedReader fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));<BR> targetDataLine.open(audioFormat,8000);<BR> targetDataLine.start();<BR> //sourceDataLine.open(audioFormat,44100);<BR> //sourceDataLine.start();<BR> double ratio=bufferlength/framelength; <BR> byte[] frame=new byte[framelength];<BR>...
2011 Apr 16
3
calling dovecot exported auth from Java
As far as I have been able to figure out, dovecot auth always works over
a Unix domain socket. I believe it is not currently possible to operate
dovecot auth over an Internet domain (TCP) socket. Am I correct?
I want to call dovecot's exported authentication from a Java
application. Java doesn't natively know how to talk to a Unix domain
socket, so there are inconveniences. There
2012 Jul 12
11
Announce: PuppetDB 0.9.2 Available
PuppetDB 0.9.2 is the third beta release on the road to 1.0. Changes
include new features and bug fixes. For details on changes
in this release, please see the release notes below.
# Downloads
Available in native package format at
http://yum.puppetlabs.com
http://apt.puppetlabs.com
Source (same license as Puppet): http://github.com/puppetlabs/puppetdb
Available for use with Puppet
2004 Aug 06
3
q about jspeex
Hi Marc,
thanks for the quick reply.
Marc Gimpel wrote:
> It would appear the the 'pcm2speex.read(frame, 0, frame.length)' is
> blocking which means that it is waiting for data from the underlying
> inputstream (i.e.AudioInputStream(t.input)). If it could read
> sufficient data it would transcode it. If it recieved an EOF, it
> should do some zero padding and then