/vertx-template-engines/vertx-web-templ-rocker/src/main/java/io/vertx/ext/web/templ/rocker/impl/VertxBufferOutputFactory.java

https://github.com/vert-x3/vertx-web · Java · 32 lines · 9 code · 5 blank · 18 comment · 0 complexity · e01b79b062756173bed9d137d13b6704 MD5 · raw file

  1. /*
  2. * Copyright 2014 Red Hat, Inc.
  3. *
  4. * All rights reserved. This program and the accompanying materials
  5. * are made available under the terms of the Eclipse Public License v1.0
  6. * and Apache License v2.0 which accompanies this distribution.
  7. *
  8. * The Eclipse Public License is available at
  9. * http://www.eclipse.org/legal/epl-v10.html
  10. *
  11. * The Apache License v2.0 is available at
  12. * http://www.opensource.org/licenses/apache2.0.php
  13. *
  14. * You may elect to redistribute this code under either of these licenses.
  15. */
  16. package io.vertx.ext.web.templ.rocker.impl;
  17. import com.fizzed.rocker.ContentType;
  18. import com.fizzed.rocker.RockerOutputFactory;
  19. /**
  20. * @author <a href="mailto:xianguang.zhou@outlook.com">Xianguang Zhou</a>
  21. */
  22. public class VertxBufferOutputFactory implements RockerOutputFactory<VertxBufferOutput> {
  23. @Override
  24. public VertxBufferOutput create(ContentType contentType, String charsetName) {
  25. return new VertxBufferOutput(contentType, charsetName);
  26. }
  27. }