org.jproggy.snippetory.engine
Class EncodingRegistry

java.lang.Object
  extended by org.jproggy.snippetory.engine.EncodingRegistry

public final class EncodingRegistry
extends Object

Handles registration of encoding and transcoding overwrites. See offical documentation for additional information


Field Summary
static EncodingRegistry INSTANCE
           
 
Method Summary
 Encoding get(String name)
          Resolve Encoding by name
 Collection<Transcoding> getOverwrites(Encoding target)
           
 void register(Encoding value)
           
 void registerOverwite(Encoding target, Transcoding overwrite)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EncodingRegistry INSTANCE
Method Detail

register

public void register(Encoding value)

registerOverwite

public void registerOverwite(Encoding target,
                             Transcoding overwrite)

get

public Encoding get(String name)
Resolve Encoding by name

Returns:
the registered encoding or null if none

getOverwrites

public Collection<Transcoding> getOverwrites(Encoding target)