com.sun.xml.internal.bind.marshaller.NoEscapeHandler Java Examples

The following examples show how to use com.sun.xml.internal.bind.marshaller.NoEscapeHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FastInfosetStreamWriterOutput.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public FastInfosetStreamWriterOutput(StAXDocumentSerializer out,
        JAXBContextImpl context) {
    super(out, NoEscapeHandler.theInstance);

    this.fiout = out;
    this.localNames = context.getUTF8NameTable();

    final VocabularyApplicationData vocabAppData = fiout.getVocabularyApplicationData();
    AppData appData = null;
    if (vocabAppData == null || !(vocabAppData instanceof AppData)) {
        appData = new AppData();
        fiout.setVocabularyApplicationData(appData);
    } else {
        appData = (AppData)vocabAppData;
    }

    final TablesPerJAXBContext tablesPerContext = appData.contexts.get(context);
    if (tablesPerContext != null) {
        tables = tablesPerContext;
        /**
         * Obtain the current local name index. Thus will be used to
         * calculate the maximum index value when serializing for this context
         */
        tables.clearOrResetTables(out.getLocalNameIndex());
    } else {
        tables = new TablesPerJAXBContext(context, out.getLocalNameIndex());
        appData.contexts.put(context, tables);
    }
}
 
Example #2
Source File: FastInfosetStreamWriterOutput.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public FastInfosetStreamWriterOutput(StAXDocumentSerializer out,
        JAXBContextImpl context) {
    super(out, NoEscapeHandler.theInstance);

    this.fiout = out;
    this.localNames = context.getUTF8NameTable();

    final VocabularyApplicationData vocabAppData = fiout.getVocabularyApplicationData();
    AppData appData = null;
    if (vocabAppData == null || !(vocabAppData instanceof AppData)) {
        appData = new AppData();
        fiout.setVocabularyApplicationData(appData);
    } else {
        appData = (AppData)vocabAppData;
    }

    final TablesPerJAXBContext tablesPerContext = appData.contexts.get(context);
    if (tablesPerContext != null) {
        tables = tablesPerContext;
        /**
         * Obtain the current local name index. Thus will be used to
         * calculate the maximum index value when serializing for this context
         */
        tables.clearOrResetTables(out.getLocalNameIndex());
    } else {
        tables = new TablesPerJAXBContext(context, out.getLocalNameIndex());
        appData.contexts.put(context, tables);
    }
}
 
Example #3
Source File: FastInfosetStreamWriterOutput.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public FastInfosetStreamWriterOutput(StAXDocumentSerializer out,
        JAXBContextImpl context) {
    super(out, NoEscapeHandler.theInstance);

    this.fiout = out;
    this.localNames = context.getUTF8NameTable();

    final VocabularyApplicationData vocabAppData = fiout.getVocabularyApplicationData();
    AppData appData = null;
    if (vocabAppData == null || !(vocabAppData instanceof AppData)) {
        appData = new AppData();
        fiout.setVocabularyApplicationData(appData);
    } else {
        appData = (AppData)vocabAppData;
    }

    final TablesPerJAXBContext tablesPerContext = appData.contexts.get(context);
    if (tablesPerContext != null) {
        tables = tablesPerContext;
        /**
         * Obtain the current local name index. Thus will be used to
         * calculate the maximum index value when serializing for this context
         */
        tables.clearOrResetTables(out.getLocalNameIndex());
    } else {
        tables = new TablesPerJAXBContext(context, out.getLocalNameIndex());
        appData.contexts.put(context, tables);
    }
}
 
Example #4
Source File: FastInfosetStreamWriterOutput.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public FastInfosetStreamWriterOutput(StAXDocumentSerializer out,
        JAXBContextImpl context) {
    super(out, NoEscapeHandler.theInstance);

    this.fiout = out;
    this.localNames = context.getUTF8NameTable();

    final VocabularyApplicationData vocabAppData = fiout.getVocabularyApplicationData();
    AppData appData = null;
    if (vocabAppData == null || !(vocabAppData instanceof AppData)) {
        appData = new AppData();
        fiout.setVocabularyApplicationData(appData);
    } else {
        appData = (AppData)vocabAppData;
    }

    final TablesPerJAXBContext tablesPerContext = appData.contexts.get(context);
    if (tablesPerContext != null) {
        tables = tablesPerContext;
        /**
         * Obtain the current local name index. Thus will be used to
         * calculate the maximum index value when serializing for this context
         */
        tables.clearOrResetTables(out.getLocalNameIndex());
    } else {
        tables = new TablesPerJAXBContext(context, out.getLocalNameIndex());
        appData.contexts.put(context, tables);
    }
}
 
Example #5
Source File: StAXExStreamWriterOutput.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public StAXExStreamWriterOutput(XMLStreamWriterEx out) {
    super(out, NoEscapeHandler.theInstance);
    this.out = out;
}
 
Example #6
Source File: StAXExStreamWriterOutput.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public StAXExStreamWriterOutput(XMLStreamWriterEx out) {
    super(out, NoEscapeHandler.theInstance);
    this.out = out;
}
 
Example #7
Source File: StAXExStreamWriterOutput.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public StAXExStreamWriterOutput(XMLStreamWriterEx out) {
    super(out, NoEscapeHandler.theInstance);
    this.out = out;
}
 
Example #8
Source File: StAXExStreamWriterOutput.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public StAXExStreamWriterOutput(XMLStreamWriterEx out) {
    super(out, NoEscapeHandler.theInstance);
    this.out = out;
}