Changeset 5008 for vlo/branches/vlo-3.0


Ignore:
Timestamp:
04/17/14 12:46:17 (10 years ago)
Author:
teckart@informatik.uni-leipzig.de
Message:

Closing FileInputStream? needed for CMDI parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/CMDIParserVTDXML.java

    r4507 r5008  
    2929        CMDIData result = new CMDIData();
    3030        VTDGen vg = new VTDGen();
    31         vg.setDoc(IOUtils.toByteArray(new FileInputStream(file)));
     31        FileInputStream fileInputStream = new FileInputStream(file);
     32        vg.setDoc(IOUtils.toByteArray(fileInputStream));
    3233        vg.parse(true);
     34        fileInputStream.close();;
     35       
    3336        VTDNav nav = vg.getNav();
    3437        setNameSpace(nav);//setting namespace once, all other instance of AutoPilot keep the setting (a bit tricky).
Note: See TracChangeset for help on using the changeset viewer.