Tabnine Logo
PrintStream.append
Code IndexAdd Tabnine to your IDE (free)

How to use
append
method
in
java.io.PrintStream

Best Java code snippets using java.io.PrintStream.append (Showing top 20 results out of 1,593)

origin: junit-team/junit4

@Override
public void testStarted(Description description) {
  writer.append('.');
}
origin: junit-team/junit4

@Override
public void testFailure(Failure failure) {
  writer.append('E');
}
origin: junit-team/junit4

@Override
public void testIgnored(Description description) {
  writer.append('I');
}
origin: google/j2objc

@Override
public void testFailure(Failure failure) {
  fWriter.append('E');
}
origin: google/j2objc

@Override
public void testIgnored(Description description) {
  fWriter.append('I');
}
origin: google/j2objc

@Override
public void testStarted(Description description) {
  fWriter.append('.');
}
origin: spockframework/spock

@Override
public PrintStream append(CharSequence csq, int start, int end) {
 for (PrintStream stream : delegates) {
  stream.append(csq, start, end);
 }
 return this;
}
origin: spockframework/spock

@Override
public PrintStream append(CharSequence csq) {
 for (PrintStream stream : delegates) {
  stream.append(csq);
 }
 return this;
}
origin: spockframework/spock

@Override
public PrintStream append(char c) {
 for (PrintStream stream : delegates) {
  stream.append(c);
 }
 return this;
}
origin: pedrovgs/Algorithms

public void printHelloWorld() {
 if ((System.out.append("Hello world")) != null) {
 }
}
origin: neo4j/neo4j

private void addHexValue( byte value )
{
  if ( bytesOnThisLine == 1 )
  {
    // it is the first byte
    // out.append( NOTHING )
  }
  else if ( bytesOnThisLine % bytesPerGroup == 1 )
  {
    // it is the first byte for a new byte group
    out.append( groupSeparator );
  }
  else
  {
    out.append( byteSeparator );
  }
  out.printf( "%X%X", 0xF & (value >> 4), 0xF & value );
}
origin: neo4j/neo4j

private void checkNewLine()
{
  if ( bytesOnThisLine >= bytesPerLine )
  {
    out.println();
    bytesOnThisLine = 0;
    currentLineNumber++;
  }
  if ( bytesOnThisLine == 0 && maxLineNumberDigits > 0 )
  {
    // a new line and line number enabled
    out.append( lineNumberPrefix );
    out.printf( "0x%0" + maxLineNumberDigits + "X", currentLineNumber );
    out.append( lineNumberSuffix );
  }
  bytesOnThisLine++;
}
origin: apache/zookeeper

  private void printChildren(List<String> children, Stat stat) {
    Collections.sort(children);
    out.append("[");
    boolean first = true;
    for (String child : children) {
      if (!first) {
        out.append(", ");
      } else {
        first = false;
      }
      out.append(child);
    }
    out.append("]");
    if (stat != null) {
      new StatPrinter(out).print(stat);
    }
    out.append("\n");
  }
}
origin: googleapis/google-cloud-java

@Override
public void run() {
 synchronized (resultStream) {
  resultBytes.reset();
 }
 for (Class<?> clazz : classes) {
  resultStream.append("\n").append("Running ").append(clazz.getName());
  ClassLoader classLoader = clazz.getClassLoader();
  resultStream.append(" (loaded by ").append(classLoader.getClass().getName()).append(")\n\n");
  unit.run(clazz);
 }
 resultStream.append("ALL TESTS COMPLETED");
}
origin: org.hamcrest/hamcrest-all

@Override
public void writeMethod(String generatedMethodName, FactoryMethod factoryMethod) throws IOException {
  String actsOn = removePackageNames(factoryMethod.getGenerifiedType());
  for (int i = actsOn.length(); i < columnPosition; i++) {
    out.append(' ');
  }
  out.append('[').append(actsOn).append("] ");
  out.append(generatedMethodName);
  out.append('(');
  boolean seenFirst = false;
  for (FactoryMethod.Parameter parameter : factoryMethod.getParameters()) {
    if (seenFirst) {
      out.append(", ");
    } else {
      seenFirst = true;
    }
    out.append(removePackageNames(parameter.getType()));
    out.append(' ');
    out.append(parameter.getName());
  }
  out.append(')');
  out.println();
}
origin: stackoverflow.com

 public class To100 {
  public static void main(String[] args) {
    String set = new java.util.BitSet() {{ set(1, 100+1); }}.toString();
    System.out.append(set, 1, set.length()-1);
  }
}
origin: cucumber/cucumber-jvm

private void printSnippets() {
  List<String> snippets = undefinedStepsTracker.getSnippets();
  if (!snippets.isEmpty()) {
    out.append("\n");
    out.println("You can implement missing steps with the snippets below:");
    out.println();
    for (String snippet : snippets) {
      out.println(snippet);
    }
  }
}
origin: neo4j/neo4j

  @Override
  void printBody( PrintStream out, String exceptionLinePrefix )
  {
    out.print( ", filePageId:" );
    out.print( filePageId );
    out.print( ", cachePageId:" );
    out.print( cachePageId );
    out.print( ", hit:" );
    out.print( hit );
    print( out, file );
    out.append( ", exclusiveLock:" );
    out.print( exclusiveLock );
  }
}
origin: org.apache.poi/poi-ooxml

  @Override
  public void visit(XDGFShape shape, AffineTransform globalTransform,
      int level) {
    for (int i = 0; i < level; i++) {
      os.append("  ");
    }
    // TODO: write text?
    os.println(shape + " [" + shape.getShapeType()
        + ", " + shape.getSymbolName() + "] "
        + shape.getMasterShape() + " "
        + shape.getTextAsString().trim());
  }
});
origin: runelite/runelite

  br.append("hash=");
  br.write(Base64.getEncoder().encode(archive.getHash()));
  br.append("\n");
if (contents != null)
  br.append("contents=");
  br.write(Base64.getEncoder().encode(contents));
  br.append("\n");
java.ioPrintStreamappend

Javadoc

Appends the char c.

Popular methods of PrintStream

  • println
    Prints an array of characters and then terminate the line. This method behaves as though it invokes
  • print
    Prints an array of characters. The characters are converted into bytes according to the platform's d
  • <init>
  • printf
    Prints a formatted string. The behavior of this method is the same as this stream's #format(Locale,
  • flush
    Flushes the stream. This is done by writing any buffered output bytes to the underlying output strea
  • close
    Closes the stream. This is done by flushing the stream and then closing the underlying output stream
  • format
    Writes a string formatted by an intermediate Formatter to this stream using the specified locale, fo
  • write
  • checkError
    Flushes the stream and checks its error state. The internal error state is set to true when the unde
  • setError
    Sets the error state of the stream to true. This method will cause subsequent invocations of #checkE
  • newline
    Put the line separator String onto the print stream.
  • ensureOpen
    Check to make sure that the stream has not been closed
  • newline,
  • ensureOpen,
  • newLine,
  • requireNonNull,
  • toCharset

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • String (java.lang)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JCheckBox (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now