Code example for Writer

Methods: append

0
    } 
  } 
 
  public Void caseNull() {
    try { 
      writer.append("null");
      return null; 
    } catch (IOException e) {
      throw new RuntimeException();
    } 
  } 
 
  public Void caseNumber(Json.Number number) {
    try { 
      writer.append(number.toString());
      return null; 
    } catch (IOException e) {
      throw new RuntimeException();
    } 
  } 
Experience pair programming with AI  Get Codota for Java