java.io.PrintStream.newline()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(123)

本文整理了Java中java.io.PrintStream.newline()方法的一些代码示例,展示了PrintStream.newline()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PrintStream.newline()方法的具体详情如下:
包路径:java.io.PrintStream
类名称:PrintStream
方法名:newline

PrintStream.newline介绍

[英]Put the line separator String onto the print stream.
[中]将行分隔符字符串放入打印流。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Prints a newline.
 */
public void println() {
  newline();
}

代码示例来源:origin: robovm/robovm

/**
 * Prints a string followed by a newline. The string is converted to an array of bytes using
 * the encoding chosen during the construction of this stream. The bytes are
 * then written to the target stream with {@code write(int)}.
 *
 * <p>If an I/O error occurs, this stream's error state is set to {@code true}.
 *
 * @param str
 *            the string to print to the target stream.
 * @see #write(int)
 */
public synchronized void println(String str) {
  print(str);
  newline();
}

代码示例来源:origin: ibinti/bugvm

/**
 * Prints a newline.
 */
public void println() {
  newline();
}

代码示例来源:origin: MobiVM/robovm

/**
 * Prints a newline.
 */
public void println() {
  newline();
}

代码示例来源:origin: com.jtransc/jtransc-rt

/**
 * Prints a newline.
 */
public void println() {
  newline();
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Prints a newline.
 */
public void println() {
  newline();
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Prints a newline.
 */
public void println() {
  newline();
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Prints a newline.
 */
public void println() {
  newline();
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Prints a newline.
 */
public void println() {
  newline();
}

代码示例来源:origin: MobiVM/robovm

/**
 * Prints a string followed by a newline. The string is converted to an array of bytes using
 * the encoding chosen during the construction of this stream. The bytes are
 * then written to the target stream with {@code write(int)}.
 *
 * <p>If an I/O error occurs, this stream's error state is set to {@code true}.
 *
 * @param str
 *            the string to print to the target stream.
 * @see #write(int)
 */
public synchronized void println(String str) {
  print(str);
  newline();
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Prints a string followed by a newline. The string is converted to an array of bytes using
 * the encoding chosen during the construction of this stream. The bytes are
 * then written to the target stream with {@code write(int)}.
 *
 * <p>If an I/O error occurs, this stream's error state is set to {@code true}.
 *
 * @param str
 *            the string to print to the target stream.
 * @see #write(int)
 */
public synchronized void println(String str) {
  print(str);
  newline();
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Prints a string followed by a newline. The string is converted to an array of bytes using
 * the encoding chosen during the construction of this stream. The bytes are
 * then written to the target stream with {@code write(int)}.
 *
 * <p>If an I/O error occurs, this stream's error state is set to {@code true}.
 *
 * @param str
 *            the string to print to the target stream.
 * @see #write(int)
 */
public synchronized void println(String str) {
  print(str);
  newline();
}

代码示例来源:origin: ibinti/bugvm

/**
 * Prints a string followed by a newline. The string is converted to an array of bytes using
 * the encoding chosen during the construction of this stream. The bytes are
 * then written to the target stream with {@code write(int)}.
 *
 * <p>If an I/O error occurs, this stream's error state is set to {@code true}.
 *
 * @param str
 *            the string to print to the target stream.
 * @see #write(int)
 */
public synchronized void println(String str) {
  print(str);
  newline();
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Prints a string followed by a newline. The string is converted to an array of bytes using
 * the encoding chosen during the construction of this stream. The bytes are
 * then written to the target stream with {@code write(int)}.
 *
 * <p>If an I/O error occurs, this stream's error state is set to {@code true}.
 *
 * @param str
 *            the string to print to the target stream.
 * @see #write(int)
 */
public synchronized void println(String str) {
  print(str);
  newline();
}

代码示例来源:origin: com.jtransc/jtransc-rt

/**
 * Prints a string followed by a newline. The string is converted to an array of bytes using
 * the encoding chosen during the construction of this stream. The bytes are
 * then written to the target stream with {@code write(int)}.
 *
 * <p>If an I/O error occurs, this stream's error state is set to {@code true}.
 *
 * @param str
 *            the string to print to the target stream.
 * @see #write(int)
 */
public synchronized void println(String str) {
  print(str);
  newline();
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Prints a string followed by a newline. The string is converted to an array of bytes using
 * the encoding chosen during the construction of this stream. The bytes are
 * then written to the target stream with {@code write(int)}.
 *
 * <p>If an I/O error occurs, this stream's error state is set to {@code true}.
 *
 * @param str
 *            the string to print to the target stream.
 * @see #write(int)
 */
public synchronized void println(String str) {
  print(str);
  newline();
}

相关文章