protected void write( final Map consolidated )
throws PackException
{
if( mode == null || !mode.equalsIgnoreCase( "binary" ) )
{
final TextWriter writer = new TextWriter();
writer.setOut( out );
writer.write( consolidated );
}
else
{
final ResourceWriter writer = new BinaryWriter();
writer.setOut( out );
writer.setOrder( order );
writer.write( consolidated );
}
}