Subversion Repository Public Repository

litesoft

Diff Revisions 2 vs 24 for /trunk/Java/core/Server/src/org/litesoft/filesinksource/FileSystemFileSinkAndSourceFactory.java

Diff revisions: vs.
  @@ -39,11 +39,13 @@
39 39 mDirectoryPath = pDirectoryPath;
40 40 }
41 41
42 + @Override
42 43 public String put( InputStream pInputStream ) throws IOException
43 44 {
44 45 final File zFile = getAvailableName( pInputStream ); // Will close pInputStream if problem
45 46 Utils.copy( pInputStream, new OutputStreamFactory() // closes pInputStream
46 47 {
48 + @Override
47 49 public OutputStream createOutputStream()
48 50 throws IOException
49 51 {
  @@ -98,6 +100,7 @@
98 100 mDirectoryPath = pDirectoryPath;
99 101 }
100 102
103 + @Override
101 104 public FileSourceInfo get() throws IOException
102 105 {
103 106 OpaqueHandle zHandle = OpaqueHandle.parse( mOpaqueHandle );
  @@ -124,6 +127,7 @@
124 127 mFile = pFile;
125 128 }
126 129
130 + @Override
127 131 public long getSize()
128 132 {
129 133 return mFile.length();