Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,10 +1,10 @@
1 1 // This Source Code is in the Public Domain per: http://litesoft.org/License.txt
2 2 package org.litesoft.filesinksource;
3 3
4 - import org.litesoft.util.*;
5 -
6 4 import java.io.*;
7 5
6 + import org.litesoft.util.*;
7 +
8 8 public class FileSystemFileSinkAndSourceFactory extends FileSinkAndSourceFactory
9 9 {
10 10 public static final String HANDLE_PREFIX = "F@";
  @@ -41,7 +41,8 @@
41 41 }
42 42
43 43 @Override
44 - public String put( InputStream pInputStream ) throws IOException
44 + public String put( InputStream pInputStream )
45 + throws IOException
45 46 {
46 47 final File zFile = getAvailableName( pInputStream ); // Will close pInputStream if problem
47 48 Utils.copy( pInputStream, new OutputStreamFactory() // closes pInputStream
  @@ -102,7 +103,8 @@
102 103 }
103 104
104 105 @Override
105 - public FileSourceInfo get() throws IOException
106 + public FileSourceInfo get()
107 + throws IOException
106 108 {
107 109 OpaqueHandle zHandle = OpaqueHandle.parse( mOpaqueHandle );
108 110 if ( (zHandle != null) && mDirectoryPath.equals( zHandle.getDirectoryPath() ) )