Author: grothoff Date: 2006-07-05 14:47:18 -0700 (Wed, 05 Jul 2006) New Revision: 3099
Modified: Extractor-java/org/gnunet/libextractor/Extractor.java Log: Dear Christian, I've attached another version which includes all the EXTRACTOR_KeywordType enum values from extractor.h as public fields, so that Java applications using libextractor will have something more than the magic number exposed for them to use to refer to a keyword's type. That way Java developers will be able to refer to Extractor types in a meaningful way. Regards, Andrew Modified: Extractor-java/org/gnunet/libextractor/Extractor.java =================================================================== --- Extractor-java/org/gnunet/libextractor/Extractor.java 2006-07-05 21:44:10 UTC (rev 3098) +++ Extractor-java/org/gnunet/libextractor/Extractor.java 2006-07-05 21:47:18 UTC (rev 3099) @@ -29,6 +29,7 @@ * @author Christian Grothoff */ public final class Extractor { + private static boolean warn_; @@ -261,6 +262,123 @@ * @author Christian Grothoff */ public static final class Keyword { + + //Keyword types + public static final int EXTRACTOR_UNKNOWN = 0; + public static final int EXTRACTOR_FILENAME = 1; + public static final int EXTRACTOR_MIMETYPE = 2; + public static final int EXTRACTOR_TITLE = 3; + public static final int EXTRACTOR_AUTHOR = 4; + public static final int EXTRACTOR_ARTIST = 5; + public static final int EXTRACTOR_DESCRIPTION = 6; + public static final int EXTRACTOR_COMMENT = 7; + public static final int EXTRACTOR_DATE = 8; + public static final int EXTRACTOR_PUBLISHER = 9; + public static final int EXTRACTOR_LANGUAGE = 10; + public static final int EXTRACTOR_ALBUM = 11; + public static final int EXTRACTOR_GENRE = 12; + public static final int EXTRACTOR_LOCATION = 13; + public static final int EXTRACTOR_VERSIONNUMBER = 14; + public static final int EXTRACTOR_ORGANIZATION = 15; + public static final int EXTRACTOR_COPYRIGHT = 16; + public static final int EXTRACTOR_SUBJECT = 17; + public static final int EXTRACTOR_KEYWORDS = 18; + public static final int EXTRACTOR_CONTRIBUTOR = 19; + public static final int EXTRACTOR_RESOURCE_TYPE = 20; + public static final int EXTRACTOR_FORMAT = 21; + public static final int EXTRACTOR_RESOURCE_IDENTIFIER = 22; + public static final int EXTRACTOR_SOURCE = 23; + public static final int EXTRACTOR_RELATION = 24; + public static final int EXTRACTOR_COVERAGE = 25; + public static final int EXTRACTOR_SOFTWARE = 26; + public static final int EXTRACTOR_DISCLAIMER = 27; + public static final int EXTRACTOR_WARNING = 28; + public static final int EXTRACTOR_TRANSLATED = 29; + public static final int EXTRACTOR_CREATION_DATE = 30; + public static final int EXTRACTOR_MODIFICATION_DATE = 31; + public static final int EXTRACTOR_CREATOR = 32; + public static final int EXTRACTOR_PRODUCER = 33; + public static final int EXTRACTOR_PAGE_COUNT = 34; + public static final int EXTRACTOR_PAGE_ORIENTATION = 35; + public static final int EXTRACTOR_PAPER_SIZE = 36; + public static final int EXTRACTOR_USED_FONTS = 37; + public static final int EXTRACTOR_PAGE_ORDER = 38; + public static final int EXTRACTOR_CREATED_FOR = 39; + public static final int EXTRACTOR_MAGNIFICATION = 40; + public static final int EXTRACTOR_RELEASE = 41; + public static final int EXTRACTOR_GROUP = 42; + public static final int EXTRACTOR_SIZE = 43; + public static final int EXTRACTOR_SUMMARY = 44; + public static final int EXTRACTOR_PACKAGER = 45; + public static final int EXTRACTOR_VENDOR = 46; + public static final int EXTRACTOR_LICENSE = 47; + public static final int EXTRACTOR_DISTRIBUTION = 48; + public static final int EXTRACTOR_BUILDHOST = 49; + public static final int EXTRACTOR_OS = 50; + public static final int EXTRACTOR_DEPENDENCY = 51; + public static final int EXTRACTOR_HASH_MD4 = 52; + public static final int EXTRACTOR_HASH_MD5 = 53; + public static final int EXTRACTOR_HASH_SHA0 = 54; + public static final int EXTRACTOR_HASH_SHA1 = 55; + public static final int EXTRACTOR_HASH_RMD160 = 56; + public static final int EXTRACTOR_RESOLUTION = 57; + public static final int EXTRACTOR_CATEGORY = 58; + public static final int EXTRACTOR_BOOKTITLE = 59; + public static final int EXTRACTOR_PRIORITY = 60; + public static final int EXTRACTOR_CONFLICTS = 61; + public static final int EXTRACTOR_REPLACES = 62; + public static final int EXTRACTOR_PROVIDES = 63; + public static final int EXTRACTOR_CONDUCTOR = 64; + public static final int EXTRACTOR_INTERPRET = 65; + public static final int EXTRACTOR_OWNER = 66; + public static final int EXTRACTOR_LYRICS = 67; + public static final int EXTRACTOR_MEDIA_TYPE = 68; + public static final int EXTRACTOR_CONTACT = 69; + public static final int EXTRACTOR_THUMBNAIL_DATA = 70; + public static final int EXTRACTOR_PUBLICATION_DATE = 71; + public static final int EXTRACTOR_CAMERA_MAKE = 72; + public static final int EXTRACTOR_CAMERA_MODEL = 73; + public static final int EXTRACTOR_EXPOSURE = 74; + public static final int EXTRACTOR_APERTURE = 75; + public static final int EXTRACTOR_EXPOSURE_BIAS = 76; + public static final int EXTRACTOR_FLASH = 77; + public static final int EXTRACTOR_FLASH_BIAS = 78; + public static final int EXTRACTOR_FOCAL_LENGTH = 79; + public static final int EXTRACTOR_FOCAL_LENGTH_35MM = 80; + public static final int EXTRACTOR_ISO_SPEED = 81; + public static final int EXTRACTOR_EXPOSURE_MODE = 82; + public static final int EXTRACTOR_METERING_MODE = 83; + public static final int EXTRACTOR_MACRO_MODE = 84; + public static final int EXTRACTOR_IMAGE_QUALITY = 85; + public static final int EXTRACTOR_WHITE_BALANCE = 86; + public static final int EXTRACTOR_ORIENTATION = 87; + public static final int EXTRACTOR_TEMPLATE = 88; + public static final int EXTRACTOR_SPLIT = 89; + public static final int EXTRACTOR_PRODUCTVERSION = 90; + public static final int EXTRACTOR_LAST_SAVED_BY = 91; + public static final int EXTRACTOR_LAST_PRINTED = 92; + public static final int EXTRACTOR_WORD_COUNT = 93; + public static final int EXTRACTOR_CHARACTER_COUNT = 94; + public static final int EXTRACTOR_TOTAL_EDITING_TIME = 95; + public static final int EXTRACTOR_THUMBNAILS = 96; + public static final int EXTRACTOR_SECURITY = 97; + public static final int EXTRACTOR_CREATED_BY_SOFTWARE = 98; + public static final int EXTRACTOR_MODIFIED_BY_SOFTWARE = 99; + public static final int EXTRACTOR_REVISION_HISTORY = 100; + public static final int EXTRACTOR_LOWERCASE = 101; + public static final int EXTRACTOR_COMPANY = 102; + public static final int EXTRACTOR_GENERATOR = 103; + public static final int EXTRACTOR_CHARACTER_SET = 104; + public static final int EXTRACTOR_LINE_COUNT = 105; + public static final int EXTRACTOR_PARAGRAPH_COUNT = 106; + public static final int EXTRACTOR_EDITING_CYCLES = 107; + public static final int EXTRACTOR_SCALE = 108; + public static final int EXTRACTOR_MANAGER = 109; + public static final int EXTRACTOR_MOVIE_DIRECTOR = 110; + public static final int EXTRACTOR_DURATION = 111; + public static final int EXTRACTOR_INFORMATION = 112; + public static final int EXTRACTOR_FULL_NAME = 113; + public static final int EXTRACTOR_CHAPTER = 114; private final int type_; _______________________________________________ GNUnet-SVN mailing list GNUnet-SVN@gnu.org http://lists.gnu.org/mailman/listinfo/gnunet-svn