Package nz.govt.natlib.meta

Examples of nz.govt.natlib.meta.DoNothingTransformer


      out = new FileOutputStream(f);

      String outDTD = config.getOutputDTD();
     
      // This loads the DoNohtingTransformer.
      TransformProcessor transformer = new DoNothingTransformer();
       
        //TransformProcessor.getInstance(
        //  inDTD, outDTD);
     

      ByteArrayOutputStream bout = new ByteArrayOutputStream(2048);
      ParserContext handler = new ParserContext();
      ParserListener listener = new DTDXmlParserListener(bout,
          outDTD == null ? null : Config.getInstance()
              .getXMLBaseURL()
              + "/" + outDTD);
      handler.addListener(listener);
      adapter.adapt(file, handler);

      transformer.transform(new ByteArrayInputStream(bout.toByteArray()),
          out);
    } finally {
      if (out != null) {
        out.close();
      }
View Full Code Here

TOP

Related Classes of nz.govt.natlib.meta.DoNothingTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.