summaryrefslogtreecommitdiff
path: root/libjava/javax/activation/MailcapCommandMap.h
blob: bf5c28fcb85265bfe78b0051a2fa9fba5ff45d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_activation_MailcapCommandMap__
#define __javax_activation_MailcapCommandMap__

#pragma interface

#include <javax/activation/CommandMap.h>
#include <gcj/array.h>

extern "Java"
{
  namespace javax
  {
    namespace activation
    {
        class CommandInfo;
        class DataContentHandler;
        class MailcapCommandMap;
    }
  }
}

class javax::activation::MailcapCommandMap : public ::javax::activation::CommandMap
{

public:
  MailcapCommandMap();
  MailcapCommandMap(::java::lang::String *);
  MailcapCommandMap(::java::io::InputStream *);
private:
  void init(::java::io::Reader *);
public:
  virtual JArray< ::javax::activation::CommandInfo * > * getPreferredCommands(::java::lang::String *);
  virtual JArray< ::javax::activation::CommandInfo * > * getAllCommands(::java::lang::String *);
  virtual ::javax::activation::CommandInfo * getCommand(::java::lang::String *, ::java::lang::String *);
  virtual void addMailcap(::java::lang::String *);
  virtual ::javax::activation::DataContentHandler * createDataContentHandler(::java::lang::String *);
  virtual JArray< ::java::lang::String * > * getNativeCommands(::java::lang::String *);
private:
  void addNativeCommands(::java::util::List *, ::java::util::Map *, ::java::lang::String *);
  static ::java::lang::String * nameOf(jint);
  void parseFile(jint, ::java::lang::String *);
  void parseResource(jint, ::java::lang::String *);
  void parse(jint, ::java::io::Reader *);
  void parseEntry(jint, ::java::lang::String *);
  void addField(::java::util::Map *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  ::java::util::Map * getCommands(::java::util::Map *, ::java::lang::String *);
  ::java::util::List * getSystemResources(::java::lang::String *);
  static const jint PROG = 0;
  static const jint HOME = 1;
  static const jint SYS = 2;
  static const jint JAR = 3;
  static const jint DEF = 4;
  static jboolean debug;
  static const jint NORMAL = 0;
  static const jint FALLBACK = 1;
  JArray< JArray< ::java::util::Map * > * > * __attribute__((aligned(__alignof__( ::javax::activation::CommandMap)))) mailcaps;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_activation_MailcapCommandMap__