X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=support%2Fsrc%2Forg%2Fwamblee%2Fio%2FFileResource.java;h=ee43f72f9d4190bf33b865a9e2a4518d8e16418f;hb=5b6b49fbe01397461e67238481c84a62c8ed4bef;hp=63ac27e6f49f28fe004eb1c2cd9520e1500c7c23;hpb=a9a399fb3921ce5dca15cf85cd06f523724a7db1;p=utils diff --git a/support/src/org/wamblee/io/FileResource.java b/support/src/org/wamblee/io/FileResource.java index 63ac27e6..ee43f72f 100644 --- a/support/src/org/wamblee/io/FileResource.java +++ b/support/src/org/wamblee/io/FileResource.java @@ -12,7 +12,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.wamblee.io; import java.io.BufferedInputStream; @@ -21,8 +21,6 @@ import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; - - /** * Resource implemention for reading from a file. */ @@ -34,16 +32,20 @@ public class FileResource implements InputResource { /** * Constructs the resource. - * @param aFile File to read. + * + * @param aFile + * File to read. */ - public FileResource( File aFile ) { + public FileResource(File aFile) { _file = aFile; } - /** (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.wamblee.io.InputResource#getInputStream() */ - public InputStream getInputStream( ) throws IOException { - return new BufferedInputStream( new FileInputStream( _file ) ); + public InputStream getInputStream() throws IOException { + return new BufferedInputStream(new FileInputStream(_file)); } }