added commit method to blob interface for non file based implementations

This commit is contained in:
Sebastian Sdorra
2012-12-07 11:58:42 +01:00
parent fa53fe8366
commit 77b705989d
2 changed files with 25 additions and 0 deletions

View File

@@ -45,6 +45,16 @@ import java.io.OutputStream;
public interface Blob public interface Blob
{ {
/**
* Method description
*
*
* @throws IOException
*/
public void commit() throws IOException;
//~--- get methods ----------------------------------------------------------
/** /**
* Method description * Method description
* *

View File

@@ -61,6 +61,21 @@ public class FileBlob implements Blob
this.file = file; this.file = file;
} }
//~--- methods --------------------------------------------------------------
/**
* Method description
*
*
* @throws IOException
*/
@Override
public void commit() throws IOException
{
// nothing todo
}
//~--- get methods ---------------------------------------------------------- //~--- get methods ----------------------------------------------------------
/** /**