Fork me on GitHub

StringWriterSpecializedAdapter

In package com.mitchellbosecke.pebble.extension.writer

public class StringWriterSpecializedAdapter extends Object implements SpecializedWriter

A ${@link SpecializedWriter} that wraps a ${@link StringWriter}. Directly write numbers into the underlying ${@link StringBuffer} and save String allocations (compared to ${@link java.io.Writer}).

Constructors

public StringWriterSpecializedAdapter(StringWriter sw)
Parameters:
  • StringWriter sw

Methods

public void writeSpecialized(int i)
Parameters:
  • int i
public void writeSpecialized(long l)
Parameters:
  • long l
public void writeSpecialized(double d)
Parameters:
  • double d
public void writeSpecialized(float f)
Parameters:
  • float f
public void writeSpecialized(short s)
Parameters:
  • short s
public void writeSpecialized(byte b)
Parameters:
  • byte b
public void writeSpecialized(char i)
Parameters:
  • char i
public void writeSpecialized(String s)
Parameters:
  • String s