at.spardat.xma.pipes
Class WindowsPipe

java.lang.Object
  extended byat.spardat.xma.pipes.XMAPipe
      extended byat.spardat.xma.pipes.WindowsPipe

public class WindowsPipe
extends XMAPipe

Since:
version_number

Method Summary
 void close()
          Closes and flushes the connection to a client.
 void destroyPipe()
          Closes the Pipe itself, which the can then not be used further.
 void open()
          Waits for a client to connect and connects to it.
 byte[] read()
          Reads from pipe (client).
 void write(byte[] out)
          Writes out to pipe (client).
 
Methods inherited from class at.spardat.xma.pipes.XMAPipe
getInstance, getPipeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

destroyPipe

public void destroyPipe()
                 throws java.io.IOException
Description copied from class: XMAPipe
Closes the Pipe itself, which the can then not be used further. Should always be called after pipe is not further used.

Specified by:
destroyPipe in class XMAPipe
Throws:
java.io.IOException

open

public void open()
          throws java.io.IOException
Description copied from class: XMAPipe
Waits for a client to connect and connects to it.

Specified by:
open in class XMAPipe
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from class: XMAPipe
Closes and flushes the connection to a client.

Specified by:
close in class XMAPipe
Throws:
java.io.IOException

write

public void write(byte[] out)
           throws java.io.IOException
Description copied from class: XMAPipe
Writes out to pipe (client). Do not try to write more than 4096 bytes ! (Actual Win32 Impl).

Specified by:
write in class XMAPipe
Parameters:
out - - the byte[] must not be longer than 4096.
Throws:
java.io.IOException

read

public byte[] read()
            throws java.io.IOException
Description copied from class: XMAPipe
Reads from pipe (client).

Specified by:
read in class XMAPipe
Returns:
the bytes read from the pipe
Throws:
java.io.IOException