Fork me on GitHub

SpecializedWriter

In package com.mitchellbosecke.pebble.extension.writer

public interface interface SpecializedWriter

A special type to be implemented by ${@link java.io.Writer}s so Pebble can bypass ${@link Number}s String allocation and directly write primitives.

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 c)
Parameters:
  • char c
public void writeSpecialized(String s)
Parameters:
  • String s
public void write(Object o)
Parameters:
  • Object o