code
stringlengths
73
34.1k
label
stringclasses
1 value
void setFooterHeight (final float fFooterHeight) { // Set the maximum value only if (Float.isNaN (m_fFooterHeight)) m_fFooterHeight = fFooterHeight; else m_fFooterHeight = Math.max (m_fFooterHeight, fFooterHeight); }
java
void addPerPageElements (@Nonnull @Nonempty final ICommonsList <PLElementWithSize> aCurPageElements) { ValueEnforcer.notEmptyNoNullValue (aCurPageElements, "CurPageElements"); m_aPerPageElements.add (aCurPageElements); }
java
@Nonnegative public float getEffectiveValue (final float fAvailableWidth) { switch (m_eType) { case ABSOLUTE: return Math.min (m_fValue, fAvailableWidth); case PERCENTAGE: return fAvailableWidth * m_fValue / 100; default: throw new IllegalStateException ("Unsupporte...
java
@Deprecated public ArrayList<Item> getAllItems( EpcFormat epcFormat, String epcPrefix, String jobId, String zoneNames, PresenceConfidence presenceConfidence, String facility, String pageMarker) { return getAllItems( epcFormat, epcPrefix, jobId, ...
java
static String getServerIdFromHandshake(ChannelBuffer handshakeBuffer, ObjectMapper mapper) throws IOException { Handshake handshake = getHandshakeFromBuffer(handshakeBuffer, mapper); return handshake.getServerId(); }
java
public void setTitle(CharSequence title){ if(mConstruct != null && !mConstruct.getDesign().isMaterial()){ // Modify the dialog's title element getDialog().setTitle(title); }else{ if(mTitle != null){ mTitle.setText(title); } } }
java
public void setMessage(CharSequence message){ if(mConstruct != null && !mConstruct.getDesign().isMaterial()){ TextView msgView = (TextView) getDialog().findViewById(R.id.message); msgView.setText(message); }else{ if(mMessage != null){ mMessage.setText(...
java
private Integer getButtonPriority(Integer button){ switch (button){ case Dialog.BUTTON_POSITIVE: return 1; case Dialog.BUTTON_NEUTRAL: return 2; case Dialog.BUTTON_NEGATIVE: return 3; default: return ...
java
@Override public void applyDesign(Design design, int themeColor) { Context ctx = mInputField.getContext(); int smallPadId = design.isMaterial() ? R.dimen.default_margin : R.dimen.default_margin_small; int largePadId = design.isMaterial() ? R.dimen.material_edittext_spacing : R.dimen.default...
java
@Override public void onButtonClicked(int which, DialogInterface dialogInterface) { switch (which){ case Dialog.BUTTON_POSITIVE: if(mListener != null) mListener.onAccepted(getText()); break; case Dialog.BUTTON_NEGATIVE: // Do nothing fo...
java
synchronized KeyValue get(long index, String key) throws KayVeeException { incrementLastAppliedIndex(index); String value = entries.get(key); if (value == null) { throw new KeyNotFoundException(key); } return new KeyValue(key, value); }
java
synchronized KeyValue set(long index, String key, String value) { incrementLastAppliedIndex(index); entries.put(key, value); return new KeyValue(key, entries.get(key)); }
java
private static void applyDefaults(Delivery.Builder builder){ Stamp defaults = getPostman().defaultStamp; if(defaults != null){ builder.setDesign(defaults.getDesign()) .setCancelable(defaults.isCancelable()) .setCanceledOnTouchOutside(defaults.isCanceledO...
java
private void init(){ MAX_BUTTON_WIDTH = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 124f, getResources().getDisplayMetrics()); MIN_BUTTON_WIDTH = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 88f, getResources().getDisplayMetrics()); }
java
public void updateDesign(Design design){ mDesign = design; if(mStyle != null) mStyle.applyDesign(mDesign, mThemeColor); }
java
@Override public void applyDesign(Design design, int themeColor) { if(mProgressStyle == HORIZONTAL) { LayerDrawable drawable = (LayerDrawable) mLayout.getResources().getDrawable(R.drawable.progress_material_horizontal); Drawable bg = drawable.getDrawable(0); int color ...
java
public ProgressStyle setProgress(int value){ if(mProgressStyle == HORIZONTAL) { if (mProgress.isIndeterminate()) mProgress.setIndeterminate(false); if (mProgress.getMax() <= value) mProgress.setMax(value); mProgress.setProgress(value); ...
java
public ProgressStyle setMax(int value){ if(mProgressStyle == HORIZONTAL) { if (mProgress.isIndeterminate()) mProgress.setIndeterminate(false); mProgress.setMax(value); if (!mIsPercentageMode) mProgressMax.setText(String.format("%d %s", valu...
java
public ProgressStyle setIndeterminate(boolean value){ if(mProgressStyle == HORIZONTAL) { mProgress.setIndeterminate(value); mProgressText.setVisibility(value ? View.GONE : View.VISIBLE); mProgressMax.setVisibility(value ? View.GONE : View.VISIBLE); } return th...
java
private int lighten(int color){ float[] hsv = new float[3]; Color.colorToHSV(color, hsv); hsv[2] = 1.0f - 0.8f * (1.0f - hsv[2]); color = Color.HSVToColor(hsv); return color; }
java
@Deprecated public ItemHistoryResponse getItemHistory( EpcFormat epcFormat, String epcPrefix, String jobId, String fromZone, String toZone, String fromFacility, String toFacility, PresenceConfidence presenceConfidence, String facility, Integer pageSize, Stri...
java
@Deprecated public ArrayList<ItemHistory> getAllItemHistory( EpcFormat epcFormat, String epcPrefix, String jobId, String fromZone, String toZone, String fromFacility, String toFacility, PresenceConfidence presenceConfidence, String facility, String pageMarke...
java
@Override public int propertyNameToCType(byte[]bytes, int p, int end) { Integer ctype = PosixBracket.PBSTableUpper.get(bytes, p, end); if (ctype != null) return ctype; throw new CharacterPropertyException(EncodingError.ERR_INVALID_CHAR_PROPERTY_NAME, bytes, p, end - p); }
java
static byte[] asciiCompatibleEncoding(byte[] asciiCompatName) { CaseInsensitiveBytesHash<TranscoderDB.Entry> dTable = TranscoderDB.transcoders.get(asciiCompatName); if (dTable == null || dTable.size() != 1) return null; byte[] asciiCN = null; for (Entry e : dTable) { if (!EC...
java
protected final void checkResize() { if (size == table.length) { // size / table.length > DENSITY int forSize = table.length + 1; // size + 1; for (int i=0, newCapacity = MIN_CAPA; i < PRIMES.length; i++, newCapacity <<= 1) { if (newCapacity > forSize) { ...
java
public void insert( Envelope itemEnv, Object item ) { if (itemEnv.isNull()) { return; } super.insert(itemEnv, item); }
java
public double calculateSuperficialDischarge( double superficialDischarge, double saturatedAreaPercentage, long timeInMillis ) { distributeIncomingSuperficialDischarge(superficialDischarge, saturatedAreaPercentage, timeInMillis); return superficialDischargeArray[indexFromTimeI...
java
public double calculateSubsuperficialDischarge( double subSuperficialDischarge, double saturatedAreaPercentage, long timeInMillis ) { distributeIncomingSubSuperficialDischarge(subSuperficialDischarge, saturatedAreaPercentage, timeInMillis); return subSuperficialDischargeArray...
java
public static List<String> getDatabases( String host, String port, String existingDb, String user, String pwd ) throws Exception { if (existingDb == null) { existingDb = "postgres"; } String url = EDb.POSTGRES.getJdbcPrefix() + host + ":" + port + "/" + existingDb; ...
java
public static BufferedImage scaleImage( BufferedImage image, int newSize ) throws Exception { int imageWidth = image.getWidth(); int imageHeight = image.getHeight(); int width; int height; if (imageWidth > imageHeight) { width = newSize; height = imageHei...
java
public static BufferedImage imageFromReader( AbstractGridCoverage2DReader reader, int cols, int rows, double w, double e, double s, double n, CoordinateReferenceSystem resampleCrs ) throws IOException { CoordinateReferenceSystem sourceCrs = reader.getCoordinateReferenceSystem(); GeneralParam...
java
public static BufferedImage makeColorTransparent( BufferedImage bufferedImageToProcess, final Color colorToMakeTransparent ) { ImageFilter filter = new RGBImageFilter(){ public int markerRGB = colorToMakeTransparent.getRGB() | 0xFF000000; public final int filterRGB( int x, int y, int rgb...
java
public static boolean isAllOneColor( BufferedImage image ) { int width = image.getWidth(); int height = image.getHeight(); int previousRgb = 0; boolean isFirst = true; for( int x = 0; x < width; x++ ) { for( int y = 0; y < height; y++ ) { int rgb = ima...
java
public void setParentGroups(final List<TemplateTokenInfo> tokenInfos) { // inefficient, perhaps should look into being provided a map of tokenInfos // - keep double itterator for now as // probably irrelevant in the face of speed as a whole for (final String tokenName : containsString) {...
java
private SimpleFeatureType getCalibrationFeatureType( CoordinateReferenceSystem crs ) { SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder(); ITrentoPType[] values = TrentoPFeatureType.PipesTrentoP.values(); String typeName = values[0].getName(); b.setName(typeName); b.setC...
java
public static String joinByComma( List<String> items ) { StringBuilder sb = new StringBuilder(); for( String item : items ) { sb.append(",").append(item); } if (sb.length() == 0) { return ""; } return sb.substring(1); }
java
public static String joinBySeparator( List<String> items, String separator ) { int size = items.size(); if (size == 0) { return ""; } StringBuilder sb = new StringBuilder(items.get(0)); for( int i = 1; i < size; i++ ) { sb.append(separator).append(items.ge...
java
public static Polygon createPolygonFromEnvelope( Envelope env ) { double minX = env.getMinX(); double minY = env.getMinY(); double maxY = env.getMaxY(); double maxX = env.getMaxX(); Coordinate[] c = new Coordinate[]{new Coordinate(minX, minY), new Coordinate(minX, maxY), new Coor...
java
public static Polygon createPolygonFromBounds( double minX, double minY, double maxX, double maxY ) { Coordinate[] c = new Coordinate[]{new Coordinate(minX, minY), new Coordinate(minX, maxY), new Coordinate(maxX, maxY), new Coordinate(maxX, minY), new Coordinate(minX, minY)}; return gf()...
java
public static String getSelectQuery( ASpatialDb db, final TableLevel selectedTable, boolean geomFirst ) throws Exception { String tableName = selectedTable.tableName; String letter = tableName.substring(0, 1); List<String[]> tableColumns = db.getTableColumns(tableName); GeometryColumn ge...
java
public static Map<String, String> queryToMap( ADb db, String sql, Map<String, String> optionalType ) throws Exception { Map<String, String> map = optionalType; if (map == null) { map = new HashMap<>(); } Map<String, String> _map = map; return db.execOnConnection(conne...
java
public static Map<String, Geometry> queryToGeomMap( ADb db, String sql, Map<String, Geometry> optionalType ) throws Exception { Map<String, Geometry> map = optionalType; if (map == null) { map = new HashMap<>(); } IGeometryParser gp = db.getType().getGeometryParse...
java
public float getFloatValueFromMap( RandomIter map ) { try { if (map == null) { return HMConstants.floatNovalue; } float value = map.getSampleFloat(col, row, 0); return value; } catch (Exception e) { // ignore and return novalue ...
java
public int getIntValueFromMap( RandomIter map ) { try { if (map == null) { return HMConstants.intNovalue; } int value = map.getSample(col, row, 0); return value; } catch (Exception e) { // ignore and return novalue r...
java
public double getDoubleValueFromMap( RandomIter map ) { try { if (map == null) { return HMConstants.doubleNovalue; } double value = map.getSampleDouble(col, row, 0); return value; } catch (Exception e) { // ignore and return nov...
java
public void setFloatValueInMap( WritableRandomIter map, float value ) { if (map == null) { return; } try { map.setSample(col, row, 0, value); } catch (Exception e) { e.printStackTrace(); } }
java
public double getNorth() { Double n = get(NORTH); if (n != null) { return n; } return HMConstants.doubleNovalue; }
java
public double getSouth() { Double s = get(SOUTH); if (s != null) { return s; } return HMConstants.doubleNovalue; }
java
public double getEast() { Double e = get(EAST); if (e != null) { return e; } return HMConstants.doubleNovalue; }
java
public double getWest() { Double w = get(WEST); if (w != null) { return w; } return HMConstants.doubleNovalue; }
java
public double getXres() { Double xres = get(XRES); if (xres != null) { return xres; } return HMConstants.doubleNovalue; }
java
public double getYres() { Double yres = get(YRES); if (yres != null) { return yres; } return HMConstants.doubleNovalue; }
java
public Envelope toEnvelope() { Envelope env = new Envelope(getWest(), getEast(), getSouth(), getNorth()); return env; }
java
public static LinkedHashMap<String, String> getProjectMetadata( IHMConnection connection ) throws Exception { LinkedHashMap<String, String> metadataMap = new LinkedHashMap<>(); try (IHMStatement statement = connection.createStatement()) { statement.setQueryTimeout(30); // set timeout to 30 s...
java
public byte[] getRL2Image( Geometry geom, String geomEpsg, int width, int height ) throws Exception { String sql; String rasterName = getName(); if (geomEpsg != null) { sql = "select GetMapImageFromRaster('" + rasterName + "', ST_Transform(ST_GeomFromText('" + geom.toText() + "', " ...
java
@Execute public void process() throws Exception { if (!concatOr(outCb == null, doReset)) { return; } checkNull(inRaster1); RenderedImage map1RI = inRaster1.getRenderedImage(); RenderedImage map2RI = null; if (inRaster2 == null) { map2RI = map1R...
java
public static byte[] readFileToBytes( String filePath ) throws IOException { Path path = Paths.get(filePath); byte[] bytes = Files.readAllBytes(path); return bytes; }
java
public static String readFile( File file ) throws IOException { if (!file.exists()) { throw new FileNotFoundException("The required projection file is not available: " + file.getAbsolutePath()); } try (BufferedReader br = new BufferedReader(new FileReader(file))) { String...
java
public static List<String> readFileToLinesList( File file ) throws IOException { List<String> lines = new ArrayList<>(); try (BufferedReader br = new BufferedReader(new FileReader(file))) { String line; while( (line = br.readLine()) != null ) { lines.add(line); ...
java
public static void writeFile( String text, File file ) throws IOException { try (BufferedWriter bw = new BufferedWriter(new FileWriter(file))) { bw.write(text); } }
java
public static File substituteExtention( File file, String newExtention ) { String path = file.getAbsolutePath(); int lastDot = path.lastIndexOf("."); //$NON-NLS-1$ if (lastDot == -1) { path = path + "." + newExtention; //$NON-NLS-1$ } else { path = path.substring(...
java
public static String getSafeFileName( String fileName ) { // not allowed chars in win and linux char[] notAllowed = new char[]{'/', '>', '<', ':', '"', '/', '\\', '|', '?', '*'}; char escape = '_'; int len = fileName.length(); StringBuilder sb = new StringBuilder(len); fo...
java
public static File[] getFilesListByExtention( String folderPath, final String ext ) { File[] files = new File(folderPath).listFiles(new FilenameFilter(){ public boolean accept( File dir, String name ) { return name.endsWith(ext); } }); return files; }
java
public static String getLasFileVersion( File lasFile ) throws IOException { FileInputStream fis = null; FileChannel fc = null; try { fis = new FileInputStream(lasFile); fc = fis.getChannel(); // Version Major fis.skip(24); int versionMa...
java
public static SimpleFeatureBuilder getLasFeatureBuilder( CoordinateReferenceSystem crs ) { if (lasSimpleFeatureBuilder == null) { SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder(); b.setName("lasdata"); b.setCRS(crs); b.add(THE_GEOM, Point.class); ...
java
public static SimpleFeature tofeature( LasRecord r, Integer featureId, CoordinateReferenceSystem crs ) { final Point point = toGeometry(r); double elev = r.z; if (!Double.isNaN(r.groundElevation)) { elev = r.groundElevation; } if (featureId == null) { feat...
java
public static void dumpLasFolderOverview( String folder, CoordinateReferenceSystem crs ) throws Exception { SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder(); b.setName("overview"); b.setCRS(crs); b.add("the_geom", Polygon.class); b.add("name", String.class); Si...
java
public static double distance( LasRecord r1, LasRecord r2 ) { double distance = NumericsUtilities.pythagoras(r1.x - r2.x, r1.y - r2.y); return distance; }
java
public static double distance3D( LasRecord r1, LasRecord r2 ) { double deltaElev = Math.abs(r1.z - r2.z); double projectedDistance = NumericsUtilities.pythagoras(r1.x - r2.x, r1.y - r2.y); double distance = NumericsUtilities.pythagoras(projectedDistance, deltaElev); return distance; ...
java
public static List<Geometry> triangulate( List<LasRecord> lasPoints, Double elevThres, boolean useGround, IHMProgressMonitor pm ) { pm.beginTask("Triangulation...", -1); List<Coordinate> lasCoordinates = new ArrayList<Coordinate>(); for( LasRecord lasRecord : lasPoints ) { ...
java
@SuppressWarnings("unchecked") public static void smoothIDW( List<LasRecord> lasPoints, boolean useGround, double idwBuffer, IHMProgressMonitor pm ) { List<Coordinate> coordinatesList = new ArrayList<Coordinate>(); if (useGround) { for( LasRecord dot : lasPoints ) { Coord...
java
public static double[] getLastVisiblePointData( LasRecord baseRecord, List<LasRecord> lasRecords, boolean useGround ) { if (lasRecords.size() < 1) { throw new IllegalArgumentException("This needs to have at least 1 point."); } double baseElev = useGround ? baseRecord.groundElevation ...
java
public static String getString(String key, Object... params) { String message = getStringSafely(key); if (params != null && params.length > 0) { return MessageFormat.format(message, params); } else { return message; } }
java
private static String getStringSafely(String key) { String resource = null; for (ResourceBundle bundle: bundles) { try { resource = bundle.getString(key); } catch (MissingResourceException mrex) { continue; } return resource; } return NO_MESSAGE + key; }
java
@SuppressWarnings("unchecked") public ValidationPlanResult execute(ValidationCheck check, Object target) throws ValidationEngineException { if (check == null) { return validationPlanResult; } try { check.setEmblEntryValidationPlanProperty(planProperty); if(planProperty.enproConnection.get()!=n...
java
public static void writeVector( String path, SimpleFeatureCollection featureCollection ) throws IOException { OmsVectorWriter writer = new OmsVectorWriter(); writer.file = path; writer.inVector = featureCollection; writer.process(); }
java
public static JSONArray getFormItems( JSONObject formObj ) throws JSONException { if (formObj.has(TAG_FORMITEMS)) { JSONArray formItemsArray = formObj.getJSONArray(TAG_FORMITEMS); return formItemsArray; } return null; }
java
public static List<String> getImageIds( String formString ) throws Exception { List<String> imageIds = new ArrayList<String>(); if (formString != null && formString.length() > 0) { JSONObject sectionObject = new JSONObject(formString); List<String> formsNames = Utilities.getFormN...
java
public static JSONArray formsRootFromSectionsMap( HashMap<String, JSONObject> sectionsMap ) { JSONArray rootArray = new JSONArray(); Collection<JSONObject> objects = sectionsMap.values(); for( JSONObject jsonObject : objects ) { rootArray.put(jsonObject); } return roo...
java
public String ofCompat( String compatibilityDataTypeName ) { switch( compatibilityDataTypeName ) { case COMPAT_TEXT: return TEXT(); case COMPAT_INT: return INTEGER(); case COMPAT_LONG: return LONG(); case COMPAT_REAL: return REAL();...
java
public String ofDbType( String dbSpecificType ) { if (dbSpecificType.equals(TEXT())) { return COMPAT_TEXT; } else if (dbSpecificType.equals(INTEGER())) { return COMPAT_INT; } else if (dbSpecificType.equals(LONG())) { return COMPAT_LONG; } else if (dbSp...
java
private BinaryFast thinBinaryRep( BinaryFast b, int[] kernel ) { Point p; HashSet<Point> inputHashSet = new HashSet<Point>(); int[][] pixels = b.getPixels(); if (kernelNo0s(kernel)) { for( int j = 0; j < b.getHeight(); ++j ) { for( int i = 0; i < b.getWidth();...
java
public void processSkeleton( BinaryFast binary, int[][] kernel ) { int oldForeEdge = 0; int oldBackEdge = 0; while( !(binary.getForegroundEdgePixels().size() == oldForeEdge && binary.getBackgroundEdgePixels().size() == oldBackEdge) ) { oldForeEdge = binary.getForegroundEdgePixels().s...
java
private boolean kernelMatch( Point p, int[][] pixels, int w, int h, int[] kernel ) { int matched = 0; for( int j = -1; j < 2; ++j ) { for( int i = -1; i < 2; ++i ) { if (kernel[((j + 1) * 3) + (i + 1)] == 2) { ++matched; } else if ((p.x + i...
java
private HashSet<Point> hitMissHashSet( BinaryFast b, HashSet<Point> input, int[] kernel ) { HashSet<Point> output = new HashSet<Point>(); Iterator<Point> it = input.iterator(); while( it.hasNext() ) { Point p = it.next(); if (kernelMatch(p, b.getPixels(), b.getWidth(), b....
java
private boolean kernelNo0s( int[] kernel ) { for( int i = 0; i < kernel.length; ++i ) { if (kernel[i] == 0) return false; } return true; }
java
public static float[] dashFromString( String dashPattern ) { if (dashPattern.trim().length() > 0) { String[] split = dashPattern.split(","); if (split.length > 1) { float[] dash = new float[split.length]; for( int i = 0; i < split.length; i++ ) { ...
java
public static String dashToString( float[] dash, Float shift ) { StringBuilder sb = new StringBuilder(); if (shift != null) sb.append(shift); for( int i = 0; i < dash.length; i++ ) { if (shift != null || i > 0) { sb.append(","); } s...
java
public void clear() { Arrays.fill(clusters, 0, bound, null); pairs.clear(); additions = 0; count = 0; bound = 0; }
java
public void add(double m, Object pt, K key) { if (m == 0.0) return; //nothing to do if (count < capacity) { //shortcut //TODO should prefer add if var comes to zero GvmCluster<S,K> cluster = new GvmCluster<S,K>(this); clusters[additions] = cluster; cluster.set(m, pt); addPairs(); cluster.key = key...
java
private void addPairs() { GvmCluster<S,K> cj = clusters[count]; int c = count - 1; //index at which new pairs registered for existing clusters for (int i = 0; i < count; i++) { GvmCluster<S,K> ci = clusters[i]; GvmClusterPair<S,K> pair = new GvmClusterPair<S,K>(ci, cj); ci.pairs[c] = pair; cj.pairs[i]...
java
private void updatePairs(GvmCluster<S,K> cluster) { GvmClusterPair<S,K>[] pairs = cluster.pairs; //accelerated path if (count == bound) { int limit = count - 1; for (int i = 0; i < limit; i++) { this.pairs.reprioritize(pairs[i]); } } else { int limit = bound - 1; for (int i = 0; i < limit; i+...
java
private void removePairs(GvmCluster<S,K> cluster) { GvmClusterPair<S,K>[] pairs = cluster.pairs; for (int i = 0; i < bound-1; i++) { GvmClusterPair<S,K> pair = pairs[i]; if (pair.c1.removed || pair.c2.removed) continue; this.pairs.remove(pair); } }
java
public void open( String filename, int mode ) throws jsqlite.Exception { this.filename = filename; if ((mode & 0200) != 0) { mode = jsqlite.Constants.SQLITE_OPEN_READWRITE | jsqlite.Constants.SQLITE_OPEN_CREATE; } else if ((mode & 0400) != 0) { mode = jsqlite.Constants.SQ...
java
public void create_function( String name, int nargs, Function f ) { synchronized (this) { _create_function(name, nargs, f); } }
java
public void create_aggregate( String name, int nargs, Function f ) { synchronized (this) { _create_aggregate(name, nargs, f); } }
java
public Backup backup( Database dest, String destName, String srcName ) throws jsqlite.Exception { synchronized (this) { Backup b = new Backup(); _backup(b, dest, destName, this, srcName); return b; } }
java
public Vm compile( String sql ) throws jsqlite.Exception { synchronized (this) { Vm vm = new Vm(); vm_compile(sql, vm); return vm; } }
java
public Vm compile( String sql, String args[] ) throws jsqlite.Exception { synchronized (this) { Vm vm = new Vm(); vm_compile_args(sql, vm, args); return vm; } }
java
public Stmt prepare( String sql ) throws jsqlite.Exception { synchronized (this) { Stmt stmt = new Stmt(); stmt_prepare(sql, stmt); return stmt; } }
java