public VFSIndexOutput(FileObject file) { try { if (!file.exists()) file.createFile(); content = file.getContent().getRandomAccessContent(); } catch (System.IO.IOException ioe) { throw ioe; } catch (Exception e) { throw e; } }
public VFSIndexInput(FileObject file) { try { content = file.getContent().getRandomAccessContent(); length = content.length; } catch (System.IO.IOException ioe) { throw ioe; } catch (Exception e) { throw e; } }