1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_xml_libxmlj_transform_GnomeTransformer__
|
5 |
|
|
#define __gnu_xml_libxmlj_transform_GnomeTransformer__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/xml/transform/Transformer.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace xml
|
17 |
|
|
{
|
18 |
|
|
namespace libxmlj
|
19 |
|
|
{
|
20 |
|
|
namespace dom
|
21 |
|
|
{
|
22 |
|
|
class GnomeDocument;
|
23 |
|
|
}
|
24 |
|
|
namespace sax
|
25 |
|
|
{
|
26 |
|
|
class GnomeXMLReader;
|
27 |
|
|
}
|
28 |
|
|
namespace transform
|
29 |
|
|
{
|
30 |
|
|
class GnomeTransformer;
|
31 |
|
|
}
|
32 |
|
|
}
|
33 |
|
|
}
|
34 |
|
|
}
|
35 |
|
|
namespace javax
|
36 |
|
|
{
|
37 |
|
|
namespace xml
|
38 |
|
|
{
|
39 |
|
|
namespace transform
|
40 |
|
|
{
|
41 |
|
|
class ErrorListener;
|
42 |
|
|
class Result;
|
43 |
|
|
class Source;
|
44 |
|
|
class Transformer;
|
45 |
|
|
class URIResolver;
|
46 |
|
|
namespace sax
|
47 |
|
|
{
|
48 |
|
|
class SAXResult;
|
49 |
|
|
}
|
50 |
|
|
}
|
51 |
|
|
}
|
52 |
|
|
}
|
53 |
|
|
}
|
54 |
|
|
|
55 |
|
|
class gnu::xml::libxmlj::transform::GnomeTransformer : public ::javax::xml::transform::Transformer
|
56 |
|
|
{
|
57 |
|
|
|
58 |
|
|
public: // actually package-private
|
59 |
|
|
GnomeTransformer(::javax::xml::transform::Source *, ::javax::xml::transform::URIResolver *, ::javax::xml::transform::ErrorListener *);
|
60 |
|
|
private:
|
61 |
|
|
GnomeTransformer(::java::lang::Object *, ::javax::xml::transform::URIResolver *, ::javax::xml::transform::ErrorListener *, ::java::util::Map *, ::java::util::Properties *);
|
62 |
|
|
::java::lang::Object * newStylesheet();
|
63 |
|
|
::java::lang::Object * newStylesheetFromStream(::java::io::InputStream *, JArray< jbyte > *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, jboolean, jboolean);
|
64 |
|
|
::java::lang::Object * newStylesheetFromDoc(::gnu::xml::libxmlj::dom::GnomeDocument *);
|
65 |
|
|
public:
|
66 |
|
|
virtual void setParameter(::java::lang::String *, ::java::lang::Object *);
|
67 |
|
|
virtual ::java::lang::Object * getParameter(::java::lang::String *);
|
68 |
|
|
virtual void clearParameters();
|
69 |
|
|
virtual void setErrorListener(::javax::xml::transform::ErrorListener *);
|
70 |
|
|
virtual ::javax::xml::transform::ErrorListener * getErrorListener();
|
71 |
|
|
virtual void setURIResolver(::javax::xml::transform::URIResolver *);
|
72 |
|
|
virtual ::javax::xml::transform::URIResolver * getURIResolver();
|
73 |
|
|
virtual void setOutputProperties(::java::util::Properties *);
|
74 |
|
|
virtual void setOutputProperty(::java::lang::String *, ::java::lang::String *);
|
75 |
|
|
virtual ::java::util::Properties * getOutputProperties();
|
76 |
|
|
virtual ::java::lang::String * getOutputProperty(::java::lang::String *);
|
77 |
|
|
virtual ::javax::xml::transform::Transformer * newTransformer();
|
78 |
|
|
virtual void transform(::javax::xml::transform::Source *, ::javax::xml::transform::Result *);
|
79 |
|
|
private:
|
80 |
|
|
::gnu::xml::libxmlj::sax::GnomeXMLReader * getSAXContext(::javax::xml::transform::sax::SAXResult *);
|
81 |
|
|
void transformStreamToStream(::java::io::InputStream *, JArray< jbyte > *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, jboolean, jboolean, ::java::io::OutputStream *);
|
82 |
|
|
::gnu::xml::libxmlj::dom::GnomeDocument * transformStreamToDoc(::java::io::InputStream *, JArray< jbyte > *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, jboolean, jboolean);
|
83 |
|
|
void transformStreamToSAX(::java::io::InputStream *, JArray< jbyte > *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, jboolean, jboolean, ::gnu::xml::libxmlj::sax::GnomeXMLReader *);
|
84 |
|
|
void transformDocToStream(::gnu::xml::libxmlj::dom::GnomeDocument *, ::java::io::OutputStream *);
|
85 |
|
|
::gnu::xml::libxmlj::dom::GnomeDocument * transformDocToDoc(::gnu::xml::libxmlj::dom::GnomeDocument *);
|
86 |
|
|
void transformDocToSAX(::gnu::xml::libxmlj::dom::GnomeDocument *, ::gnu::xml::libxmlj::sax::GnomeXMLReader *);
|
87 |
|
|
JArray< ::java::lang::String * > * getParameterArray();
|
88 |
|
|
public:
|
89 |
|
|
virtual void finalize();
|
90 |
|
|
private:
|
91 |
|
|
void free();
|
92 |
|
|
::java::io::InputStream * resolveEntity(::java::lang::String *, ::java::lang::String *);
|
93 |
|
|
void setDocumentLocator(::java::lang::Object *, ::java::lang::Object *);
|
94 |
|
|
void warning(::java::lang::String *, jint, jint, ::java::lang::String *, ::java::lang::String *);
|
95 |
|
|
void error(::java::lang::String *, jint, jint, ::java::lang::String *, ::java::lang::String *);
|
96 |
|
|
void fatalError(::java::lang::String *, jint, jint, ::java::lang::String *, ::java::lang::String *);
|
97 |
|
|
::java::util::Map * __attribute__((aligned(__alignof__( ::javax::xml::transform::Transformer)))) parameters;
|
98 |
|
|
::java::util::Properties * outputProperties;
|
99 |
|
|
::javax::xml::transform::URIResolver * resolver;
|
100 |
|
|
::javax::xml::transform::ErrorListener * errorListener;
|
101 |
|
|
::java::lang::Object * stylesheet;
|
102 |
|
|
public:
|
103 |
|
|
static ::java::lang::Class class$;
|
104 |
|
|
};
|
105 |
|
|
|
106 |
|
|
#endif // __gnu_xml_libxmlj_transform_GnomeTransformer__
|