private XMLUtil getXMLUtil() { if (xmlUtil == null) xmlUtil = XMLUtilFactory.getXMLUtil(); return xmlUtil; }
private XMLUtil getXMLUtil() { if (xmlUtil == null) xmlUtil = XMLUtilFactory.getXMLUtil(); return xmlUtil; }
private XMLUtil getXMLUtil() { if (xmlUtil == null) xmlUtil = XMLUtilFactory.getXMLUtil(); return xmlUtil; }
private XMLUtil getXMLUtil() { if (xmlUtil == null) xmlUtil = XMLUtilFactory.getXMLUtil(); return xmlUtil; }
public AMF3Deserializer(InputStream in, int capacity) { this.in = in; this.buffer = new byte[capacity]; this.position = 0; this.size = 0; this.storedStrings = new ArrayList<String>(64); this.storedObjects = new ArrayList<Object>(64); this.storedClassDescriptors = new ArrayList<ActionScriptClassDescriptor>(); this.documentCache = null; // created on demand. GraniteContext context = GraniteContext.getCurrentInstance(); this.aliasRegistry = ((AliasRegistryConfig)context.getGraniteConfig()).getAliasRegistry(); this.externalizersConfig = (ExternalizersConfig)context.getGraniteConfig(); this.securizer = ((AMF3Config)context.getGraniteConfig()).getAmf3DeserializerSecurizer(); this.xmlUtil = XMLUtilFactory.getXMLUtil(); }
public AMF3Deserializer(InputStream in, int capacity) { this.in = in; this.buffer = new byte[capacity]; this.position = 0; this.size = 0; this.storedStrings = new ArrayList<String>(64); this.storedObjects = new ArrayList<Object>(64); this.storedClassDescriptors = new ArrayList<ActionScriptClassDescriptor>(); this.documentCache = null; // created on demand. GraniteContext context = GraniteContext.getCurrentInstance(); this.aliasRegistry = ((AliasRegistryConfig)context.getGraniteConfig()).getAliasRegistry(); this.externalizersConfig = (ExternalizersConfig)context.getGraniteConfig(); this.securizer = ((AMF3Config)context.getGraniteConfig()).getAmf3DeserializerSecurizer(); this.xmlUtil = XMLUtilFactory.getXMLUtil(); }
public AMF3Deserializer(InputStream in, int capacity) { this.in = in; this.buffer = new byte[capacity]; this.position = 0; this.size = 0; this.storedStrings = new ArrayList<String>(64); this.storedObjects = new ArrayList<Object>(64); this.storedClassDescriptors = new ArrayList<ActionScriptClassDescriptor>(); this.documentCache = null; // created on demand. GraniteContext context = GraniteContext.getCurrentInstance(); this.aliasRegistry = ((AliasRegistryConfig)context.getGraniteConfig()).getAliasRegistry(); this.externalizersConfig = (ExternalizersConfig)context.getGraniteConfig(); this.securizer = ((AMF3Config)context.getGraniteConfig()).getAmf3DeserializerSecurizer(); this.xmlUtil = XMLUtilFactory.getXMLUtil(); }
public AMF3Serializer(OutputStream out, int capacity) { this.out = out; this.buffer = new byte[capacity]; this.position = 0; this.storedStrings = new StringIndexedCache(); this.storedObjects = new ObjectIndexedCache(); this.storedClassDescriptors = new IdentityHashMap<Class<?>, IndexedJavaClassDescriptor>(); this.writersCache = new IdentityHashMap<Class<?>, AMF3Writer>(64); GraniteContext context = GraniteContext.getCurrentInstance(); ConvertersConfig convertersConfig = (ConvertersConfig)context.getGraniteConfig(); this.converters = convertersConfig.getConverters(); this.classGetter = convertersConfig.getClassGetter(); this.xmlUtil = XMLUtilFactory.getXMLUtil(); this.externalizersConfig = (ExternalizersConfig)context.getGraniteConfig(); this.externalizeLong = (externalizersConfig.getExternalizer(Long.class.getName()) != null); this.externalizeBigInteger = (externalizersConfig.getExternalizer(BigInteger.class.getName()) != null); this.externalizeBigDecimal = (externalizersConfig.getExternalizer(BigDecimal.class.getName()) != null); String channelId = context.getAMFContext().getChannelId(); ChannelConfig channelConfig = context.getServicesConfig(); this.legacyXmlSerialization = getChannelProperty(channelId, channelConfig, "legacyXmlSerialization"); this.legacyCollectionSerialization = getChannelProperty(channelId, channelConfig, "legacyCollectionSerialization"); }
public AMF3Serializer(OutputStream out, int capacity) { this.out = out; this.buffer = new byte[capacity]; this.position = 0; this.storedStrings = new StringIndexedCache(); this.storedObjects = new ObjectIndexedCache(); this.storedClassDescriptors = new IdentityHashMap<Class<?>, IndexedJavaClassDescriptor>(); this.writersCache = new IdentityHashMap<Class<?>, AMF3Writer>(64); GraniteContext context = GraniteContext.getCurrentInstance(); ConvertersConfig convertersConfig = (ConvertersConfig)context.getGraniteConfig(); this.converters = convertersConfig.getConverters(); this.classGetter = convertersConfig.getClassGetter(); this.xmlUtil = XMLUtilFactory.getXMLUtil(); this.externalizersConfig = (ExternalizersConfig)context.getGraniteConfig(); this.externalizeLong = (externalizersConfig.getExternalizer(Long.class.getName()) != null); this.externalizeBigInteger = (externalizersConfig.getExternalizer(BigInteger.class.getName()) != null); this.externalizeBigDecimal = (externalizersConfig.getExternalizer(BigDecimal.class.getName()) != null); String channelId = context.getAMFContext().getChannelId(); ChannelConfig channelConfig = context.getServicesConfig(); this.legacyXmlSerialization = getChannelProperty(channelId, channelConfig, "legacyXmlSerialization"); this.legacyCollectionSerialization = getChannelProperty(channelId, channelConfig, "legacyCollectionSerialization"); }
public AMF3Serializer(OutputStream out, int capacity) { this.out = out; this.buffer = new byte[capacity]; this.position = 0; this.storedStrings = new StringIndexedCache(); this.storedObjects = new ObjectIndexedCache(); this.storedClassDescriptors = new IdentityHashMap<Class<?>, IndexedJavaClassDescriptor>(); this.writersCache = new IdentityHashMap<Class<?>, AMF3Writer>(64); GraniteContext context = GraniteContext.getCurrentInstance(); ConvertersConfig convertersConfig = (ConvertersConfig)context.getGraniteConfig(); this.converters = convertersConfig.getConverters(); this.classGetter = convertersConfig.getClassGetter(); this.xmlUtil = XMLUtilFactory.getXMLUtil(); this.externalizersConfig = (ExternalizersConfig)context.getGraniteConfig(); this.externalizeLong = (externalizersConfig.getExternalizer(Long.class.getName()) != null); this.externalizeBigInteger = (externalizersConfig.getExternalizer(BigInteger.class.getName()) != null); this.externalizeBigDecimal = (externalizersConfig.getExternalizer(BigDecimal.class.getName()) != null); String channelId = context.getAMFContext().getChannelId(); ChannelConfig channelConfig = context.getServicesConfig(); this.legacyXmlSerialization = getChannelProperty(channelId, channelConfig, "legacyXmlSerialization"); this.legacyCollectionSerialization = getChannelProperty(channelId, channelConfig, "legacyCollectionSerialization"); }