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

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

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

origin: org.tmatesoft.svnkit/svnkit

public static char[] getChars(byte[] data, String charset) {
  return getChars(data, 0, data != null ? data.length : 0, charset);        
}
origin: org.tmatesoft.svnkit/svnkit

/**
 * Returns <code>String</code> representation of <code>value</code>.
 * 
 * <p/>
 * If <code>value</code> is a {@link SVNPropertyValue#isBinary() binary} property value, then its bytes are
 * converted to a <code>String</code> encoding them with the <span class="javastring">"UTF-8"</span> charset 
 * and returned back to the caller. If that encoding fails, bytes are encoded with the default platform's 
 * charset.
 * 
 * <p/>
 * Otherwise, {@link SVNPropertyValue#getString()} is returned.
 * 
 * @param  value property value object 
 * @return       string property value; <span class="javakeyword">null</span> if <code>value</code> is
 *               <span class="javakeyword">null</span>
 */
public static char[] getPropertyAsChars(SVNPropertyValue value) {
  if (value == null) {
    return null;
  }
  if (value.isBinary()) {
    return SVNEncodingUtil.getChars(value.getBytes(), "UTF-8");
  }
  return value.getString().toCharArray();
}
origin: org.tmatesoft.svnkit/svnkit

  password = SVNEncodingUtil.getChars(rawPassword, "UTF-8");
} finally {
  library.SecKeychainItemFreeContent(null, passwordPointer);
origin: org.tmatesoft.svnkit/svnkit

  return SVNEncodingUtil.getChars(decryptedData, 0, decryptedData.length, "UTF-8");
} catch (Throwable th) {
  return null;
origin: org.tmatesoft.svnkit/svnkit

  return SVNEncodingUtil.getChars(password, "UTF-8");
} finally {
  SVNEncodingUtil.clearArray(password);
org.tmatesoft.svn.core.internal.utilSVNEncodingUtilgetChars

Popular methods of SVNEncodingUtil

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

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Github Copilot alternatives
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