uk.ac.vamsas.client.simpleclient
Class LockedFileOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FileOutputStream
          extended byuk.ac.vamsas.client.simpleclient.LockedFileOutputStream

public class LockedFileOutputStream
extends java.io.FileOutputStream

Author:
Jim

Constructor Summary
LockedFileOutputStream(java.io.File file)
           
LockedFileOutputStream(java.io.File file, boolean append)
           
LockedFileOutputStream(java.io.FileDescriptor fdObj)
           
LockedFileOutputStream(java.lang.String name)
           
LockedFileOutputStream(java.lang.String name, boolean append)
           
 
Method Summary
 void close()
          closes - actually just flushes the stream instead.
 void flush()
           
 java.nio.channels.FileChannel getChannel()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FileOutputStream
finalize, getFD
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockedFileOutputStream

public LockedFileOutputStream(java.io.File file)
                       throws java.io.FileNotFoundException
Parameters:
file -
Throws:
java.io.FileNotFoundException

LockedFileOutputStream

public LockedFileOutputStream(java.io.File file,
                              boolean append)
                       throws java.io.FileNotFoundException
Parameters:
file -
append -
Throws:
java.io.FileNotFoundException

LockedFileOutputStream

public LockedFileOutputStream(java.io.FileDescriptor fdObj)
Parameters:
fdObj -

LockedFileOutputStream

public LockedFileOutputStream(java.lang.String name)
                       throws java.io.FileNotFoundException
Parameters:
name -
Throws:
java.io.FileNotFoundException

LockedFileOutputStream

public LockedFileOutputStream(java.lang.String name,
                              boolean append)
                       throws java.io.FileNotFoundException
Parameters:
name -
append -
Throws:
java.io.FileNotFoundException
Method Detail

close

public void close()
           throws java.io.IOException
closes - actually just flushes the stream instead.

Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException
See Also:
OutputStream.flush()

getChannel

public java.nio.channels.FileChannel getChannel()
Returns:
See Also:
FileOutputStream.getChannel()

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Parameters:
b -
off -
len -
Throws:
java.io.IOException
See Also:
FileOutputStream.write(byte[], int, int)

write

public void write(byte[] b)
           throws java.io.IOException
Parameters:
b -
Throws:
java.io.IOException
See Also:
FileOutputStream.write(byte[])

write

public void write(int b)
           throws java.io.IOException
Parameters:
b -
Throws:
java.io.IOException
See Also:
FileOutputStream.write(int)