Forráskód Böngészése

HPCC-17855 New methods needed for DynamicESDL support for get_data_from

- Implement new interface methods outputInline and cutFrom in
  JavaXmlBuilder
- Fix a few formatting issues

Signed-off-by: mayx <yanrui.ma@lexisnexisrisk.com>
mayx 8 éve
szülő
commit
391063ddc2
2 módosított fájl, 9 hozzáadás és 3 törlés
  1. 3 3
      common/thorhelper/thorxmlwrite.cpp
  2. 6 0
      plugins/javaembed/javaembed.cpp

+ 3 - 3
common/thorhelper/thorxmlwrite.cpp

@@ -81,11 +81,11 @@ void CommonXmlWriter::cutFrom(IInterface *location, StringBuffer& databuf)
     if (position->pos < out.length())
     {
         size32_t startInd = position->pos;
-        if(!position->tagClosed && out.charAt(startInd) == '>')
+        if (!position->tagClosed && out.charAt(startInd) == '>')
             startInd += 1;
-        if(!position->nestLimit && startInd < out.length() && out.charAt(startInd) == '\n')
+        if (!position->nestLimit && startInd < out.length() && out.charAt(startInd) == '\n')
             startInd += 1;
-        if(startInd < out.length())
+        if (startInd < out.length())
             databuf.append(out.length() - startInd, out.str() + startInd);
         out.setLength(position->pos);
         tagClosed = position->tagClosed;

+ 6 - 0
plugins/javaembed/javaembed.cpp

@@ -2382,6 +2382,12 @@ public:
     virtual void outputXmlns(const char *name, const char *uri)
     {
     }
+    virtual void cutFrom(IInterface *location, StringBuffer& databuf)
+    {
+    }
+    virtual void outputInline(const char* text)
+    {
+    }
 
 public:
     JNIEnv *JNIenv;