Changeset 5263
- Timestamp:
- Mar 8, 2010, 1:28:59 PM (13 years ago)
- Location:
- branches/2.15-stable/src/core/net/sf/basedb/util/bfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.15-stable/src/core/net/sf/basedb/util/bfs/AnnotationParser.java
r5225 r5263 22 22 package net.sf.basedb.util.bfs; 23 23 24 import java.io.FileInputStream; 24 25 import java.io.IOException; 25 26 import java.io.InputStream; … … 118 119 } 119 120 121 /** 122 Utility method for creating an annotation parser for a file in the local 123 file system. 124 @param file The file in the local file system 125 */ 126 public static AnnotationParser create(java.io.File file) 127 throws IOException 128 { 129 return create(new FileInputStream(file), file.getName(), file.length()); 130 } 131 132 120 133 private final EncoderDecoder decoder; 121 134 private InputStream in; -
branches/2.15-stable/src/core/net/sf/basedb/util/bfs/DataParser.java
r5236 r5263 22 22 package net.sf.basedb.util.bfs; 23 23 24 import java.io.FileInputStream; 24 25 import java.io.IOException; 25 26 import java.io.InputStream; … … 104 105 } 105 106 107 /** 108 Utility method for creating a data parser for a file in the local 109 file system. 110 @param file The file in the local file system 111 */ 112 public static DataParser create(java.io.File file) 113 throws IOException 114 { 115 return create(new FileInputStream(file), file.getName(), file.length()); 116 } 117 118 106 119 private final EncoderDecoder decoder; 107 120 private InputStream in; -
branches/2.15-stable/src/core/net/sf/basedb/util/bfs/MetadataParser.java
r5225 r5263 22 22 package net.sf.basedb.util.bfs; 23 23 24 import java.io.FileInputStream; 24 25 import java.io.IOException; 25 26 import java.io.InputStream; … … 132 133 } 133 134 135 /** 136 Utility method for creating a metadata parser for a file in the local 137 file system. 138 @param file The file in the local file system 139 */ 140 public static MetadataParser create(java.io.File file) 141 throws IOException 142 { 143 return create(new FileInputStream(file), file.getName(), file.length()); 144 } 145 134 146 private final EncoderDecoder decoder; 135 147 private InputStream in;
Note: See TracChangeset
for help on using the changeset viewer.