1 28 package org.jvyamlb; 29 30 import java.io.InputStream ; 31 import java.io.OutputStream ; 32 33 import org.jruby.util.ByteList; 34 35 38 public interface YAMLFactory { 39 Scanner createScanner(final ByteList io); 40 Scanner createScanner(final InputStream io); 41 Parser createParser(final Scanner scanner); 42 Parser createParser(final Scanner scanner, final YAMLConfig cfg); 43 Resolver createResolver(); 44 Composer createComposer(final Parser parser, final Resolver resolver); 45 Constructor createConstructor(final Composer composer); 46 Emitter createEmitter(final OutputStream output, final YAMLConfig cfg); 47 Serializer createSerializer(final Emitter emitter, final Resolver resolver, final YAMLConfig cfg); 48 Representer createRepresenter(final Serializer serializer, final YAMLConfig cfg); 49 } | Popular Tags |