Show
Ignore:
Timestamp:
13.12.2016 14:02:01 (3 years ago)
Author:
davidb
Message:

Change to see if code can be made more unified. If so, then getBufferedInputStream can be simplified

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/ClusterFileIO.java

    r31227 r31228  
    127127             
    128128            //FSDataInputStream fin = _fs.open(new Path(fileIn)); 
    129             FSDataInputStream fin = fs.open(new Path(uri)); 
     129             
     130            Path path = new Path(uri); 
     131            FSDataInputStream fin = fs.open(path); 
    130132             
    131133            bis = new BufferedInputStream(fin); 
     
    141143            bis = new BufferedInputStream(fin); 
    142144            */ 
    143              
    144             FSDataInputStream fin = fs.open(new Path(fileIn)); 
     145            URI uri = URI.create (fileIn); 
     146            Path path = new Path(uri); 
     147             
     148            FSDataInputStream fin = fs.open(path); 
    145149             
    146150            bis = new BufferedInputStream(fin);