congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
NativeConverter.closeConverter
Code IndexAdd Tabnine to your IDE (free)

How to use
closeConverter
method
in
libcore.icu.NativeConverter

Best Java code snippets using libcore.icu.NativeConverter.closeConverter (Showing top 20 results out of 315)

origin: robovm/robovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: robovm/robovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: robovm/robovm

public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageCharsPerByte = NativeConverter.getAveCharsPerByte(address);
    CharsetDecoderICU result = new CharsetDecoderICU(cs, averageCharsPerByte, address);
    address = 0; // CharsetDecoderICU has taken ownership; its finalizer will do the free.
    result.updateCallback();
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: robovm/robovm

public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address);
    float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address);
    byte[] replacement = makeReplacement(icuCanonicalName, address);
    CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address);
    address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free.
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: ibinti/bugvm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: ibinti/bugvm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: com.bugvm/bugvm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: MobiVM/robovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: MobiVM/robovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: com.bugvm/bugvm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: com.gluonhq/robovm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: com.gluonhq/robovm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: FlexoVM/flexovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: FlexoVM/flexovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageCharsPerByte = NativeConverter.getAveCharsPerByte(address);
    CharsetDecoderICU result = new CharsetDecoderICU(cs, averageCharsPerByte, address);
    address = 0; // CharsetDecoderICU has taken ownership; its finalizer will do the free.
    result.updateCallback();
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: MobiVM/robovm

public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageCharsPerByte = NativeConverter.getAveCharsPerByte(address);
    CharsetDecoderICU result = new CharsetDecoderICU(cs, averageCharsPerByte, address);
    address = 0; // CharsetDecoderICU has taken ownership; its finalizer will do the free.
    result.updateCallback();
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: MobiVM/robovm

public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address);
    float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address);
    byte[] replacement = makeReplacement(icuCanonicalName, address);
    CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address);
    address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free.
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: ibinti/bugvm

public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address);
    float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address);
    byte[] replacement = makeReplacement(icuCanonicalName, address);
    CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address);
    address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free.
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
libcore.icuNativeConvertercloseConverter

Popular methods of NativeConverter

  • charsetForName
  • contains
  • decode
  • encode
  • getAvailableCharsetNames
  • getAveBytesPerChar
  • getAveCharsPerByte
  • getMaxBytesPerChar
  • getSubstitutionBytes
  • openConverter
  • resetByteToChar
  • resetCharToByte
  • resetByteToChar,
  • resetCharToByte,
  • setCallbackDecode,
  • setCallbackEncode,
  • translateCodingErrorAction

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTextField (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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