• Post Reply Bookmark Topic Watch Topic
  • New Topic

named pipe & Java ?

 
Martin E.
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hy,
is it possible to send data to another application through named pipe?
Thanks,
Martin
[ October 09, 2003: Message edited by: Martin E. ]
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try java.io.Piped*putStream or java.io.PipedReader/java.io.PipedWriter.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Martin,
Welcome to JavaRanch!
We ain't got too many rules round these parts, but we do have our naming policy which doesn't allow initials -- you have to have a full first and last name. Most of us use our real names (keeps us honest.) Please head over here and change yours, pronto. Thanks, pardner!
Now, on to your questions. I'm not sure, actually, but I suspect it might work, at least on UNIX-like systems, where I know you can use ordinary filesystem calls to talk to a named pipe. On Windows, I don't know for sure, but I think it's basically the same. If this is the case, then it should work by default, but obviously Java can't guarantee such a thing, as named pipes are a platform-dependent concept.
Please give it a try and report back here with the results -- I'd be interested to hear how it went!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!