Examples of lines()


Examples of com.knowgate.acl.PasswordRecord.lines()

  } else {
    if (DebugFile.trace)
      DebugFile.writeln("cache hit for GMail account of user "+sUser);
  }

  if (oPrec.lines().size()>0) {
    if (DebugFile.trace)
      DebugFile.writeln("CalendarService.setUserCredentials("+oPrec.getValueOf("user")+", ...)");
      oCalSrv.setUserCredentials(oPrec.getValueOf("user"), oPrec.getValueOf("pwd"));
    URL feedUrl = new URL("https://www.google.com/calendar/feeds/default/allcalendars/full");
    CalendarFeed oFeed = oCalSrv.getFeed(feedUrl, CalendarFeed.class);
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.style.StyleLibrary.lines()

   *
   * @param svgp SVG-Plot
   */
  private void addCSSClasses(SVGPlot svgp, StylingPolicy sp) {
    final StyleLibrary style = context.getStyleLibrary();
    final LineStyleLibrary lines = style.lines();
    final double width = .5 * style.getLineWidth(StyleLibrary.PLOT);
    if(sp instanceof ClassStylingPolicy) {
      ClassStylingPolicy csp = (ClassStylingPolicy) sp;
      for(int i = csp.getMinStyle(); i < csp.getMaxStyle(); i++) {
        String key = DATALINE + "_" + i;
View Full Code Here

Examples of java.io.BufferedReader.lines()

    @Override
    public Iterator<Vertex> readVertices(final InputStream inputStream, final Direction direction,
                                         final Function<DetachedVertex, Vertex> vertexMaker,
                                         final Function<DetachedEdge, Edge> edgeMaker) throws IOException {
        final BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));
        return br.lines().<Vertex>map(FunctionUtils.wrapFunction(line -> readVertex(new ByteArrayInputStream(line.getBytes()), direction, vertexMaker, edgeMaker))).iterator();
    }

    @Override
    public Edge readEdge(final InputStream inputStream, final Function<DetachedEdge, Edge> edgeMaker) throws IOException {
        final Map<String, Object> edgeData = mapper.readValue(inputStream, mapTypeReference);
View Full Code Here

Examples of java.io.BufferedReader.lines()

     * @since   1.8
     */
    public static Stream<String> lines(Path path, Charset cs) throws IOException {
        BufferedReader br = Files.newBufferedReader(path, cs);
        try {
            return br.lines().onClose(asUncheckedRunnable(br));
        } catch (Error|RuntimeException e) {
            try {
                br.close();
            } catch (IOException ex) {
                try {
View Full Code Here

Examples of java.io.BufferedReader.lines()

     * Converts input stream to String containing lines separated by \n
     */
    private String readStream(final InputStream stream)  {
        final BufferedReader reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8));
        final StringJoiner builder = new StringJoiner("\n");
        reader.lines().forEach(builder::add);
        return builder.toString();
    }
}
View Full Code Here

Examples of java.io.BufferedReader.lines()

    writer.close();

    BufferedReader reader = Files.newBufferedReader(tempFile, StandardCharsets.UTF_8);
    // BufferedReader.lines() returns a stream containing lines in the Reader, these are only (lazily) read when the
    // terminal operation of the stream is executed - e.g. collect()
    List<String> readPhrase = reader.lines().collect(Collectors.toList());
    reader.close();

    assertThat(readPhrase, is(Arrays.asList(phrase)));
  }
View Full Code Here

Examples of org.asciidoctor.ast.Block.lines()

        for (int i = 0; i < blocks.size(); i++) {
            final AbstractBlock currentBlock = blocks.get(i);
            if(currentBlock instanceof Block) {
                Block block = (Block)currentBlock;
                List<String> lines = block.lines();
                if (lines.size() > 0 && lines.get(0).startsWith("$")) {
                    blocks.set(
                            i, convertToTerminalListing(block));
                           
                }
View Full Code Here

Examples of org.dbwiki.web.html.HtmlLinePrinter.lines()

    } else if (layout.getDisplayStyle().isTableStyle()) {
      hasContent = printNodesInTableStyle(list, versionParameter, layout, content);
    }
   
    if (hasContent) {
      return content.lines();
    } else {
      return new HtmlPage();
    }
  }
View Full Code Here

Examples of org.dbwiki.web.html.HtmlLinePrinter.lines()

    } catch (WikiException e) {
      e.printStackTrace();
      // don't throw exception because we can't
    }
     
    HtmlPage lines = body.lines();
    for(int i = 0; i < lines.size(); i++)
      printer.print(lines.get(i));
    }
}
View Full Code Here

Examples of org.sonar.api.batch.fs.internal.DeprecatedDefaultInputFile.lines()

    assertThat(inputFile.file()).isEqualTo(srcFile.getAbsoluteFile());
    assertThat(inputFile.absolutePath()).isEqualTo(PathUtils.sanitize(srcFile.getAbsolutePath()));
    assertThat(inputFile.language()).isEqualTo("java");
    assertThat(inputFile.key()).isEqualTo("struts:src/main/java/foo/Bar.java");
    assertThat(inputFile.relativePath()).isEqualTo("src/main/java/foo/Bar.java");
    assertThat(inputFile.lines()).isEqualTo(1);
    assertThat(inputFile.sourceDirAbsolutePath()).isNull();
    assertThat(inputFile.pathRelativeToSourceDir()).isNull();
    assertThat(inputFile.deprecatedKey()).isNull();
  }
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.