001/**
002 *   GRANITE DATA SERVICES
003 *   Copyright (C) 2006-2013 GRANITE DATA SERVICES S.A.S.
004 *
005 *   This file is part of the Granite Data Services Platform.
006 *
007 *   Granite Data Services is free software; you can redistribute it and/or
008 *   modify it under the terms of the GNU Lesser General Public
009 *   License as published by the Free Software Foundation; either
010 *   version 2.1 of the License, or (at your option) any later version.
011 *
012 *   Granite Data Services is distributed in the hope that it will be useful,
013 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
014 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
015 *   General Public License for more details.
016 *
017 *   You should have received a copy of the GNU Lesser General Public
018 *   License along with this library; if not, write to the Free Software
019 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
020 *   USA, or see <http://www.gnu.org/licenses/>.
021 */
022package org.granite.messaging.amf;
023
024/**
025 * @author Franck WOLFF
026 */
027public interface AMF3Constants {
028        
029        /*
030        Adobe Systems Incorporated AMF 3 Specification (January 2013) 
031        
032        undefined-marker = 0x00 
033        null-marker = 0x01 
034        false-marker = 0x02 
035        true-marker = 0x03 
036        integer-marker = 0x04 
037        double-marker = 0x05 
038        string-marker = 0x06 
039        xml-doc-marker = 0x07 
040        date-marker = 0x08 
041        array-marker = 0x09 
042        object-marker = 0x0A 
043        xml-marker = 0x0B 
044        byte-array-marker = 0x0C
045        vector-int-marker = 0x0D
046        vector-uint-marker = 0x0E
047        vector-double-marker = 0x0F
048        vector-object-marker = 0x10
049        dictionary-marker = 0x11
050         */
051
052    public static final byte AMF3_UNDEFINED = 0x00;
053    public static final byte AMF3_NULL = 0x01;
054    public static final byte AMF3_BOOLEAN_FALSE = 0x02;
055    public static final byte AMF3_BOOLEAN_TRUE = 0x03;
056    public static final byte AMF3_INTEGER = 0x04;
057    public static final byte AMF3_NUMBER = 0x05;
058    public static final byte AMF3_STRING = 0x06;
059    public static final byte AMF3_XML = 0x07;
060    public static final byte AMF3_DATE = 0x08;
061    public static final byte AMF3_ARRAY = 0x09;
062    public static final byte AMF3_OBJECT = 0x0A;
063    public static final byte AMF3_XMLSTRING = 0x0B;
064    public static final byte AMF3_BYTEARRAY = 0x0C;
065    public static final byte AMF3_VECTOR_INT = 0x0D;
066    public static final byte AMF3_VECTOR_UINT = 0x0E;
067    public static final byte AMF3_VECTOR_NUMBER = 0x0F;
068    public static final byte AMF3_VECTOR_OBJECT = 0x10;
069    public static final byte AMF3_DICTIONARY = 0x11;
070    
071    public static final int AMF3_INTEGER_MAX = Integer.MAX_VALUE >> 3;
072    public static final int AMF3_INTEGER_MIN = Integer.MIN_VALUE >> 3;
073}