Tabnine Logo
SVNEncodingUtil.isXMLSafe
Code IndexAdd Tabnine to your IDE (free)

How to use
isXMLSafe
method
in
org.tmatesoft.svn.core.internal.util.SVNEncodingUtil

Best Java code snippets using org.tmatesoft.svn.core.internal.util.SVNEncodingUtil.isXMLSafe (Showing top 11 results out of 315)

origin: org.tmatesoft/svn

private static StringBuffer appendProperty(StringBuffer buffer, String name, String value) {
  buffer.append("<");
  int index = buffer.length();
  if (name.startsWith("svn:")) {
    buffer.append("S:");
    buffer.append(name.substring("svn:".length()));
  } else {
    buffer.append("C:");
    buffer.append(name);
  }
  int index2 = buffer.length();
  if (value == null) {
    return buffer.append(" />");
  }
  if (SVNEncodingUtil.isXMLSafe(value)) {
    value = SVNEncodingUtil.xmlEncodeCDATA(value);            
  } else {
    value = SVNBase64.byteArrayToBase64(value.getBytes());
    buffer.append(" V:encoding=\"base64\"");
  }
  buffer.append(">");
  buffer.append(value);
  buffer.append("</");
  buffer.append(buffer.substring(index, index2));
  return buffer.append(">");        
}
origin: org.codehaus.jtstand/jtstand-svnkit

isXMLSafe = SVNEncodingUtil.isXMLSafe(stringValue);
origin: org.tmatesoft.svnkit/svnkit

isXMLSafe = SVNEncodingUtil.isXMLSafe(stringValue);
origin: org.jvnet.hudson.svnkit/svnkit

isXMLSafe = SVNEncodingUtil.isXMLSafe(stringValue);
origin: org.tmatesoft.svnkit/svnkit-cli

isXMLSafe = SVNEncodingUtil.isXMLSafe(value);
origin: sonia.svnkit/svnkit-cli

isXMLSafe = SVNEncodingUtil.isXMLSafe(value);
origin: sonia.svnkit/svnkit-dav

String xmlSafeValue = null;
Map attrs = null;
if (!SVNEncodingUtil.isXMLSafe(propValueString)) {
  try {
    xmlSafeValue = SVNBase64.byteArrayToBase64(propValueString.getBytes("UTF-8"));
origin: sonia.svnkit/svnkit-dav

isXMLSafe = SVNEncodingUtil.isXMLSafe(value);
origin: org.tmatesoft.svnkit/svnkit

if (!SVNEncodingUtil.isXMLSafe(token)) {
  SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_BAD_LOCK_TOKEN, 
      "Lock token URI ''{0}'' is not XML-safe", token);
origin: sonia.svnkit/svnkit-dav

if (SVNEncodingUtil.isXMLSafe(lock.getOwner())) {
  SVNXMLUtil.openCDataTag(SVNXMLUtil.SVN_NAMESPACE_PREFIX, "owner", lock.getOwner(), xmlBuffer);
} else {
if (SVNEncodingUtil.isXMLSafe(lock.getComment())) {
  SVNXMLUtil.openCDataTag(SVNXMLUtil.SVN_NAMESPACE_PREFIX, "comment", lock.getComment(), xmlBuffer);
} else {
origin: org.tmatesoft.svnkit/svnkit

if (!SVNEncodingUtil.isXMLSafe(lockMessage)) {
  SVNErrorMessage errorMessage = SVNErrorMessage.create(SVNErrorCode.XML_UNESCAPABLE_DATA, "Lock comment contains illegal characters");
  SVNErrorManager.error(errorMessage, SVNLogType.WC);
org.tmatesoft.svn.core.internal.utilSVNEncodingUtilisXMLSafe

Popular methods of SVNEncodingUtil

  • uriDecode
  • autoURIEncode
  • xmlEncodeCDATA
  • fuzzyEscape
  • assertURISafe
  • isASCIIControlChar
  • uriEncode
  • xmlEncodeAttr
  • createStringBuffer
  • hexValue
  • isHexDigit
  • xmlDecode
  • isHexDigit,
  • xmlDecode,
  • clearArray,
  • copyOf,
  • getBytes,
  • getChars

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now