All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scales.aalto.parser.pull.Factory.scala Maven / Gradle / Ivy

The newest version!
package scales.aalto.parser.pull

import com.fasterxml.aalto._
import com.fasterxml.aalto.stax.InputFactoryImpl

import scales.xml._

import scales.utils.resources.SimpleUnboundedPool

/**
 * Default AsyncXMLInputFactory impl
 */ 
object AsyncXMLInputFactoryPool extends SimpleUnboundedPool[AsyncXMLInputFactory] { pool =>
  
  val cdata = "http://java.sun.com/xml/stream/properties/report-cdata-event"

  def create = {
    val fac = new InputFactoryImpl()
    if (fac.isPropertySupported(cdata)) {
      fac.setProperty(cdata, java.lang.Boolean.TRUE);
    }
    fac
  }
										   }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy