public class Serializer {
public Serializer(OutputStream out);
public Serializer(OutputStream out, String encoding);
public int getIndent();
public void setIndent(int indent);
public String getLineSeparator();
public void setLineSeparator(String lineSeparator);
public int getMaxLength();
public void setMaxLength(int length);
public boolean getPreserveBaseURI();
public void setPreserveBaseURI(boolean preserve);
public boolean getNormalizationFormC();
public void setNormalizationFormC(boolean preserve);
public void write(Document doc) throws IOException;
public void flush() throws IOException;
}