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(); }
/** * Constructor * * @param outputStream */ public AMF0Serializer(OutputStream outputStream) { AMF3Config config = GraniteContext.getCurrentInstance().getGraniteConfig(); this.dataOutput = config.newAMF3Serializer(outputStream); }
/** * Deserialize message * * @param inputStream message input stream * @throws IOException */ public AMF0Deserializer(InputStream inputStream) throws IOException { AMF3Config config = GraniteContext.getCurrentInstance().getGraniteConfig(); this.dataInput = config.newAMF3Deserializer(inputStream); // Read the binary header readHeaders(); log.debug("readHeader"); // Read the binary body readBodies(); log.debug("readBody"); }
/** * Deserialize message * * @param inputStream message input stream * @throws IOException */ public AMF0Deserializer(InputStream inputStream) throws IOException { AMF3Config config = GraniteContext.getCurrentInstance().getGraniteConfig(); this.dataInput = config.newAMF3Deserializer(inputStream); // Read the binary header readHeaders(); log.debug("readHeader"); // Read the binary body readBodies(); log.debug("readBody"); }
/** * Constructor * * @param outputStream */ public AMF0Serializer(OutputStream outputStream) { AMF3Config config = GraniteContext.getCurrentInstance().getGraniteConfig(); this.dataOutput = config.newAMF3Serializer(outputStream); }
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(); }
/** * Deserialize message * * @param inputStream message input stream * @throws IOException */ public AMF0Deserializer(InputStream inputStream) throws IOException { AMF3Config config = GraniteContext.getCurrentInstance().getGraniteConfig(); this.dataInput = config.newAMF3Deserializer(inputStream); // Read the binary header readHeaders(); log.debug("readHeader"); // Read the binary body readBodies(); log.debug("readBody"); }
/** * Constructor * * @param outputStream */ public AMF0Serializer(OutputStream outputStream) { AMF3Config config = GraniteContext.getCurrentInstance().getGraniteConfig(); this.dataOutput = config.newAMF3Serializer(outputStream); }
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(); }