StartDocument.setProperty
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using net.sf.okapi.common.resource.StartDocument.setProperty (Showing top 5 results out of 315)

  • Common ways to obtain StartDocument
private void myMethod () {
StartDocument s =
  • Event event;event.getStartDocument()
  • Event event;(StartDocument) event.getResource()
  • String id;new StartDocument(id)
  • Smart code suggestions by Codota
}
origin: net.sf.okapi.filters/okapi-filter-tmx

if (curLocalName.equalsIgnoreCase("note")
    || curLocalName.equalsIgnoreCase("prop")) {                       
  startDoc.setProperty(new Property(name, value.toString(), true));
  name = null;
  value.setLength(0);
origin: net.sf.okapi.filters/okapi-filter-tmx

startDoc.setProperty(new Property(Property.ENCODING, encoding, false));
skel.append("<?xml version=\"1.0\" encoding=\"");
skel.addValuePlaceholder(startDoc, Property.ENCODING, LocaleId.EMPTY);
origin: net.sf.okapi.filters/okapi-filter-ts

startDoc.setProperty(new Property(Property.ENCODING, encoding,
    false));
skel.append("<?xml version=\"1.0\" encoding=\"");
origin: net.sf.okapi.filters/okapi-filter-its

@Override
protected void createStartDocumentSkeleton (StartDocument startDoc) {
  // Add the XML declaration
  skel = new GenericSkeleton();
  if ( !params.omitXMLDeclaration ) {
    skel.add("<?xml version=\"" + doc.getXmlVersion() + "\"");
    skel.add(" encoding=\"");
    skel.addValuePlaceholder(startDoc, Property.ENCODING, LocaleId.EMPTY);
    skel.add("\"");
    startDoc.setProperty(new Property(Property.ENCODING, encoding, false));
    if ( doc.getXmlStandalone() ) skel.add(" standalone=\"yes\"");
    skel.add("?>"+lineBreak);
  }
  // Add the DTD if needed
  DocumentType dt = doc.getDoctype();
  if ( dt != null ) {
    rebuildDocTypeSection(dt);
  }
}
origin: net.sf.okapi.filters/okapi-filter-xliff2

startDoc.setProperty(new Property(Property.ENCODING, encoding, false));
skel.add("<?xml version=\"1.0\" encoding=\"");
skel.addValuePlaceholder(startDoc, Property.ENCODING, LocaleId.EMPTY);
net.sf.okapi.common.resourceStartDocumentsetProperty

Popular methods of StartDocument

  • setFilterParameters
    Sets the parameters for this document.
  • <init>
  • setEncoding
    Sets the character set encoding of this document.
  • setFilterWriter
    Sets the filter writer for this document.
  • setLineBreak
    Sets the type of line-break used in the original document.
  • setLocale
    Sets the locale of the document. If the document is multilingual this is the source locale.
  • setMimeType
  • setName
  • setType
  • setMultilingual
    Sets the flag that indicates if this document is multilingual.
  • setSkeleton
  • getLocale
    Gets the locale of this document. If the document is multilingual this is the source locale.
  • setSkeleton,
  • getLocale,
  • getEncoding,
  • isMultilingual,
  • getFilterParameters,
  • getFilterWriter,
  • getSkeleton,
  • getLineBreak,
  • getName

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • Kernel (java.awt.image)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JList (javax.swing)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)