Ejemplo n.º 1
0
        public JavaSerializer(Stream stream) : base(stream)
        {
            this.handleTable  = new JavaHandleTable(10);
            this.replaceTable = new JavaReplaceTable(10);

            this.WriteJavaStreamHeader();
            this.SetBlockMode(true);
        }
Ejemplo n.º 2
0
        internal JavaReplaceTable(int initialCapacity)
        {
            this.handleTable = new JavaHandleTable(initialCapacity);

            for (int i = 0; i < initialCapacity; ++i)
            {
                this.replacements.Add(null);
            }
        }