001 /*
002 GRANITE DATA SERVICES
003 Copyright (C) 2011 GRANITE DATA SERVICES S.A.S.
004
005 This file is part of Granite Data Services.
006
007 Granite Data Services is free software; you can redistribute it and/or modify
008 it under the terms of the GNU Library General Public License as published by
009 the Free Software Foundation; either version 2 of the License, or (at your
010 option) any later version.
011
012 Granite Data Services is distributed in the hope that it will be useful, but
013 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
015 for more details.
016
017 You should have received a copy of the GNU Library General Public License
018 along with this library; if not, see <http://www.gnu.org/licenses/>.
019 */
020
021 package org.granite.messaging.amf;
022
023 /**
024 * @author Franck WOLFF
025 */
026 public interface AMF3Constants {
027
028 public static final byte AMF3_UNDEFINED = 0x00;
029 public static final byte AMF3_NULL = 0x01;
030 public static final byte AMF3_BOOLEAN_FALSE = 0x02;
031 public static final byte AMF3_BOOLEAN_TRUE = 0x03;
032 public static final byte AMF3_INTEGER = 0x04;
033 public static final byte AMF3_NUMBER = 0x05;
034 public static final byte AMF3_STRING = 0x06;
035 public static final byte AMF3_XML = 0x07;
036 public static final byte AMF3_DATE = 0x08;
037 public static final byte AMF3_ARRAY = 0x09;
038 public static final byte AMF3_OBJECT = 0x0A;
039 public static final byte AMF3_XMLSTRING = 0x0B;
040 public static final byte AMF3_BYTEARRAY = 0x0C;
041
042 public static final byte AMF3_VECTOR_INT = 0x0D;
043 public static final byte AMF3_VECTOR_UINT = 0x0E;
044 public static final byte AMF3_VECTOR_NUMBER = 0x0F;
045 public static final byte AMF3_VECTOR_OBJECT = 0x10;
046
047 public static final int AMF3_INTEGER_MAX = Integer.MAX_VALUE >> 3;
048 public static final int AMF3_INTEGER_MIN = Integer.MIN_VALUE >> 3;
049 }