org.openstreetmap.atlas.streaming.StringOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
package org.openstreetmap.atlas.streaming;
import java.io.IOException;
import java.io.OutputStream;
/**
* {@link OutputStream} backed by a {@link StringBuilder}
*
* @author matthieun
*/
public class StringOutputStream extends OutputStream
{
private final StringBuilder builder = new StringBuilder();
@Override
public String toString()
{
return this.builder.toString();
}
@Override
public void write(final int byteValue) throws IOException
{
this.builder.append(String.valueOf((char) byteValue));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy