Examples of openReader()


Examples of com.asakusafw.bulkloader.transfer.FileListProvider.openReader()

                    bean.getTargetName(),
                    bean.getBatchId(),
                    bean.getJobflowId(),
                    bean.getExecutionId());
            provider.discardWriter();
            reader = provider.openReader();

            // FileListの終端まで繰り返す
            int fileSeq = 0;

            // プロファイル用のテーブル
View Full Code Here

Examples of com.google.gxp.compiler.fs.FileRef.openReader()

    // If there is only one argument, and it starts with an '@', then treat it
    // as an options file, relative to the current working directory.
    if ((args.length == 1) && (args[0].startsWith("@"))) {
      FileRef optionsFile = defaultDir.join(args[0].substring(1));
      Reader in = optionsFile.openReader(Charsets.UTF_8);
      List<String> lines = CharStreams.readLines(in);
      in.close();
      List<String> parsedTokens = Lists.newArrayList();
      for (String line : lines) {
        for (String token : line.trim().split("\\s+")) {
View Full Code Here

Examples of httl.Template.openReader()

  public Reader getReader() {
    if (reader == null) {
      Template template = Context.getContext().getTemplate();
      if (template != null) {
        try {
          return template.openReader();
        } catch (IOException e) {
          return null;
        }
      }
    }
View Full Code Here

Examples of javax.tools.FileObject.openReader()

            // temp hack until we can update SourcePosition API.
            if (sp instanceof com.sun.tools.javadoc.SourcePositionImpl) {
                FileObject fo = ((com.sun.tools.javadoc.SourcePositionImpl) sp).fileObject();
                if (fo == null)
                    return;
                r = fo.openReader(true);
            } else {
                File file = sp.file();
                if (file == null)
                    return;
                r = new FileReader(file);
View Full Code Here

Examples of javax.tools.FileObject.openReader()

            // temp hack until we can update SourcePosition API.
            if (sp instanceof com.sun.tools.javadoc.SourcePositionImpl) {
                FileObject fo = ((com.sun.tools.javadoc.SourcePositionImpl) sp).fileObject();
                if (fo == null)
                    return;
                r = fo.openReader(true);
            } else {
                File file = sp.file();
                if (file == null)
                    return;
                r = new FileReader(file);
View Full Code Here

Examples of javax.tools.FileObject.openReader()

            // temp hack until we can update SourcePosition API.
            if (sp instanceof com.sun.tools.javadoc.SourcePositionImpl) {
                FileObject fo = ((com.sun.tools.javadoc.SourcePositionImpl) sp).fileObject();
                if (fo == null)
                    return;
                r = fo.openReader(true);
            } else {
                File file = sp.file();
                if (file == null)
                    return;
                r = new FileReader(file);
View Full Code Here

Examples of javax.tools.FileObject.openReader()

  }
 
  private void read(Set<String> entries) {
    try {
      FileObject file = processingEnv.getFiler().getResource(StandardLocation.CLASS_OUTPUT, "", EXTENSIONS_RESOURCE);
      readIndex(file.openReader(true), entries);
    } catch (FileNotFoundException e) {
    } catch (IOException e) {
      // thrown by Eclipse JDT when not found
    } catch (UnsupportedOperationException e) {
      // java6 does not support reading old index files
View Full Code Here

Examples of org.apache.accumulo.core.file.FileOperations.openReader()

   
    Map<String,Pair<Key,Key>> falks = new HashMap<String,Pair<Key,Key>>();
   
    for (Entry<String,DataFileValue> entry : files.entrySet()) {
      String file = entry.getKey();
      FileSKVIterator openReader = fileFactory.openReader(file, true, fs, conf, acuTableConf);
      try {
        Key first = openReader.getFirstKey();
        Key last = openReader.getLastKey();
        falks.put(file, new Pair<Key,Key>(first, last));
      } finally {
View Full Code Here

Examples of org.apache.accumulo.core.file.FileOperations.openReader()

      mfw = null; // set this to null so we do not try to close it again in finally if the close fails
      mfwTmp.close(); // if the close fails it will cause the compaction to fail
     
      // Verify the file, since hadoop 0.20.2 sometimes lies about the success of close()
      try {
        FileSKVIterator openReader = fileFactory.openReader(outputFile, false, fs, conf, acuTableConf);
        openReader.close();
      } catch (IOException ex) {
        log.error("Verification of successful compaction fails!!! " + extent + " " + outputFile, ex);
        throw ex;
      }
View Full Code Here

Examples of org.apache.accumulo.core.file.FileOperations.openReader()

       
        FileOperations fileFactory = FileOperations.getInstance();
       
        FileSKVIterator reader;
       
        reader = fileFactory.openReader(mapFile, false, fs, conf, acuTableConf);
       
        readers.add(reader);
       
        SortedKeyValueIterator<Key,Value> iter = new ProblemReportingIterator(extent.getTableId().toString(), mapFile, false, reader);
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.