uk.ac.vamsas.client.simpleclient
Class LockedFileOutputStream
java.lang.Object
java.io.OutputStream
java.io.FileOutputStream
uk.ac.vamsas.client.simpleclient.LockedFileOutputStream
- public class LockedFileOutputStream
- extends java.io.FileOutputStream
- Author:
- Jim
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 |
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
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)