TrueUpdate Core 0.1.7

net.java.trueupdate.core.io
Class FileStore

java.lang.Object
  extended by net.java.trueupdate.core.io.FileStore
All Implemented Interfaces:
Sink, Source, Store

public final class FileStore
extends Object
implements Store

A file store.

Author:
Christian Schlichtherle (copied and edited from TrueLicense Core 2.3.1)

Field Summary
 
Fields inherited from interface net.java.trueupdate.core.io.Store
BUFSIZE
 
Constructor Summary
FileStore(File file)
           
 
Method Summary
 void delete()
          Deletes the binary data.
 boolean exists()
          Returns true if and only if the binary data exists.
 InputStream input()
          Returns a new input stream for reading the binary data from this source.
 OutputStream output()
          Returns a new output stream for writing the binary data to this sink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStore

public FileStore(File file)
Method Detail

delete

public void delete()
            throws IOException
Description copied from interface: Store
Deletes the binary data.

Specified by:
delete in interface Store
Throws:
IOException

exists

public boolean exists()
Description copied from interface: Store
Returns true if and only if the binary data exists.

Specified by:
exists in interface Store

input

public InputStream input()
                  throws IOException
Description copied from interface: Source
Returns a new input stream for reading the binary data from this source.

Specified by:
input in interface Source
Throws:
IOException

output

public OutputStream output()
                    throws IOException
Description copied from interface: Sink
Returns a new output stream for writing the binary data to this sink.

Specified by:
output in interface Sink
Throws:
IOException

TrueUpdate Core 0.1.7

Copyright © 2013 Stimulus Software. All rights reserved.