code
stringlengths
10
174k
nl
stringlengths
3
129k
public static XMLObjectReader newInstance(InputStream in,String encoding) throws XMLStreamException { XMLObjectReader reader=new XMLObjectReader(); reader.setInput(in,encoding); return reader; }
Returns a XML object reader (potentially recycled) having the specified input stream/encoding as input.
public boolean isForeignKeysSupported(){ return foreignKeysSupported; }
Determines whether indices are supported.
public Builder(RenderScript rs,Element e){ e.checkValid(); mRS=rs; mElement=e; }
Create a new builder object.
public void prologueStackHeights(NormalMethod method,BytecodeStream bcodes,int[] stackHeights){ if (VM.TraceOnStackReplacement) { VM.sysWriteln("computing stack heights of method " + method.toString()); } bytecodes=bcodes; visitedpc=new byte[bytecodes.length()]; ignoreGotos=true; int localsize=method.ge...
Compute stack heights of bytecode stream (used for osr prologue)
public void sendSAXComment(org.xml.sax.ext.LexicalHandler ch,int start,int length) throws org.xml.sax.SAXException { String comment=getString(start,length); ch.comment(comment.toCharArray(),0,length); }
Sends the specified range of characters as sax Comment. <p> Note that, unlike sendSAXcharacters, this has to be done as a single call to LexicalHandler#comment.
public AbstractIndexTask(final String termText,final int termNdx,final int numTerms,final boolean prefixMatch,final double queryTermWeight,final FullTextIndex<V> searchEngine){ if (termText == null) throw new IllegalArgumentException(); if (searchEngine == null) throw new IllegalArgumentException(); this.quer...
Setup a task that will perform a range scan for entries matching the search term.
public List<Pair<Level,String>> load() throws IOException { final Logger logger=GPLogger.getLogger(GanttCSVOpen.class); final List<Pair<Level,String>> errors=Lists.newArrayList(); for ( RecordGroup group : myRecordGroups) { group.setErrorOutput(errors); } int idxCurrentGroup=0; int idxNextGroup; int ...
Create tasks from file.
public void convertToFileIfRequired(){ try { if (small != null && small.length > getMaxLengthInplaceLob()) { int len=getBufferSize(Long.MAX_VALUE); int tabId=tableId; if (type == Value.BLOB) { createFromStream(DataUtils.newBytes(len),0,getInputStream(),Long.MAX_VALUE); } else { ...
Store the lob data to a file if the size of the buffer is larger than the maximum size for an in-place lob.
public Object runSafely(Catbert.FastStack stack) throws Exception { MediaFile mf=getMediaFile(stack); return new Long(mf == null ? 0 : mf.getRecordTime()); }
Returns the starting time for the content in ths specified MediaFile. This corresponds to when the file's recording started or the timestamp on the file itself. See java.lang.System.currentTimeMillis() for information on the time units.
public JCExpression makeNullCheck(JCExpression arg){ Name name=TreeInfo.name(arg); if (name == names._this || name == names._super) return arg; JCTree.Tag optag=NULLCHK; JCUnary tree=make.at(arg.pos).Unary(optag,arg); tree.operator=syms.nullcheck; tree.type=arg.type; return tree; }
Make an attributed null check tree.
protected boolean handle(){ log.debug("Waiting for state change"); waitSensorChange(now,sensor); now=sensor.getKnownState(); log.debug("Found new state: " + now); setTurnout(now); return true; }
Watch "sensor", and when it changes adjust "turnout" to match.
@Override public void eSet(int featureID,Object newValue){ switch (featureID) { case N4JSPackage.FUNCTION_OR_FIELD_ACCESSOR__BODY: setBody((Block)newValue); return; case N4JSPackage.FUNCTION_OR_FIELD_ACCESSOR__LOK: set_lok((LocalArgumentsVariable)newValue); return; } super.eSet(featureID,newValue); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public Offer(final RPObject object){ super(object); setRPClass("offer"); hide(); getSlot(OFFER_ITEM_SLOT_NAME).clear(); final RPObject itemObject=object.getSlot(OFFER_ITEM_SLOT_NAME).getFirst(); final Item entity=new ItemTransformer().transform(itemObject); if (entity == null) { int quantity=1; if...
Creates an Offer from a RPObject
static void stopRefreshTimer(){ try { if (refreshTimer != null && mbeanServer != null) { mbeanServer.unregisterMBean(refreshTimerObjectName); refreshTimer.stop(); } } catch ( JMException e) { logStackTrace(Level.WARN,e); } catch ( JMRuntimeException e) { logStackTrace(Level.WARN,e);...
Initializes the timer for sending refresh notifications.
public RenderPass(RajawaliScene scene,Camera camera,int clearColor){ mPassType=PassType.RENDER; mScene=scene; mCamera=camera; mClearColor=clearColor; mOldClearColor=0x00000000; mEnabled=true; mClear=true; mNeedsSwap=true; }
Instantiates a new RenderPass object.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:36:29.511 -0500",hash_original_method="3040682D1BCFEA9BA338FA9FE200A62D",hash_generated_method="CAAB92B2FE1C02DD4BCA219B7AFDAD2B") public void onRingingBack(SipSession session){ }
Called when a RINGING response is received for the INVITE request sent
public TaskResourceRep hostVcenterUnassign(URI hostId,URI eventId){ return hostClusterChange(hostId,NullColumnValueGetter.getNullURI(),NullColumnValueGetter.getNullURI(),true,eventId); }
Unassign host from a vCenter NOTE: In order to maintain backwards compatibility, do not change the signature of this method.
private void openFile(final File file,final int page){ try { final boolean fileCanBeOpened=OpenFile.openUpFile(file.getCanonicalPath(),commonValues,searchFrame,currentGUI,decode_pdf,properties,thumbnails); commonValues.setCurrentPage(page); if (fileCanBeOpened) { OpenFile.processPage(commonValues,de...
General code to open file at specified page - do not call directly
public Vertex top(Network network){ if (this.contextStack.isEmpty()) { return null; } return network.findById(this.contextStack.get(this.contextStack.size() - 1)); }
Return the top of the context stack.
public static GenericValue create(Delegator delegator,ModelEntity modelEntity,Map<String,? extends Object> fields){ GenericValue newValue=new GenericValue(); newValue.init(delegator,modelEntity,fields); return newValue; }
Creates new GenericValue from existing Map
public AuthSSLInitializationError(String message){ super(message); }
Creates a new AuthSSLInitializationError with the specified message.
public boolean containsEntry(int position,VariableReference var){ if (!trace.containsKey(position)) { trace.put(position,new HashMap<Integer,T>()); return false; } if (!trace.get(position).containsKey(var.getStPosition())) return false; return true; }
Get the current entry at the given position
protected ConditionExpression andConditions(ConditionExpression conds,ConditionExpression cond){ if (conds == null) return cond; else { List<ConditionExpression> operands=new ArrayList<>(2); operands.add(conds); operands.add(cond); return new LogicalFunctionCondition("and",operands,cond.getSQLtype(...
Combine AND of conditions (or <code>null</code>) with another one.
public boolean isNullOrEmpty(String section,String key){ String value=getKeyValueEL(section,key); return (value == null || value.length() == 0); }
Gets the NullOrEmpty attribute of the IniFile object
public static SymbolTable makeLocalSymtab(IonSystem system,String... localSymbols){ return newLocalSymtab(system,system.getSystemSymbolTable(),Arrays.asList(localSymbols)); }
Creates a local symtab with local symbols but no imports.
public boolean isSynchronised() throws IOException { String serverVersion=preCalcMatchClient.getServerVersion(); int finalDashIndex=interproscanVersion.lastIndexOf("-"); String interproDataVersion=interproscanVersion.substring(finalDashIndex); if (!serverVersion.endsWith(interproDataVersion)) { displayLooku...
If the client and the server are based on the same version of interproscan return true, otherwise return false
public String clusterResultsToString(){ return m_clusteringResults.toString(); }
return the results of clustering.
public static RxANRequest.PatchRequestBuilder patch(String url){ return new RxANRequest.PatchRequestBuilder(url); }
Method to make PATCH request
@Override public String toString(){ return name; }
Returns a string containing a concise, human-readable description of this object. In this case, the enum constant's name is returned.
protected double defaultNoiseVariance(){ return 1.0; }
returns the default variance of the noise rate
public IgniteTxRollbackCheckedException(Throwable cause){ super(cause); }
Creates new exception with given nested exception.
public void reAlloc(){ final long newAllocationSize=allocationSizeInBytes * 2L; if (newAllocationSize > MAX_ALLOCATION_SIZE) { throw new OversizedAllocationException("Requested amount of memory is more than max allowed allocation size"); } final int curSize=(int)newAllocationSize; final ArrowBuf newBuf=al...
Allocate new buffer with double capacity, and copy data into the new buffer. Replace vector's buffer with new buffer, and release old one
public boolean undo(INode state){ SmallPuzzle tp=(SmallPuzzle)state; tp.s[0]*=2; tp.s[1]*=2; return true; }
Undo a move.
public GradlePluginsRuntimeException(String message,Throwable cause){ super(message,cause); }
Creates a new instance.
@Override public DataHeaderViewHolder newViewHolder(ViewGroup viewGroup){ View dataHeaderView=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.offer_header,viewGroup,false); return new DataHeaderViewHolder(dataHeaderView); }
creates a new ViewHolder using the provided xml layout
public void restart(String gatewayId) throws PageException { executeThread(gatewayId,GatewayThread.RESTART); }
restart the gateway
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
private int readAnnotationValue(int v,final char[] buf,final String name,final AnnotationVisitor av){ int i; if (av == null) { switch (b[v] & 0xFF) { case 'e': return v + 5; case '@': return readAnnotationValues(v + 3,buf,true,null); case '[': return readAnnotationValues(v + 1,buf,false,null); default :...
Reads a value of an annotation and makes the given visitor visit it.
public boolean isProcessed(){ Object oo=get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Processed.
public SubscriptionAlreadyExistsException(String message,ApplicationExceptionBean bean){ super(message,bean); }
Constructs a new exception with the specified detail message and bean for JAX-WS exception serialization.
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public BandPassBuilder stopFrequency2(int stopFrequency){ mStopFrequency2=stopFrequency; return this; }
Specifies the beginning frequency of the second stop band
public NotificationChain basicSetArgs(ExpressionList newArgs,NotificationChain msgs){ ExpressionList oldArgs=args; args=newArgs; if (eNotificationRequired()) { ENotificationImpl notification=new ENotificationImpl(this,Notification.SET,GamlPackage.ACCESS__ARGS,oldArgs,newArgs); if (msgs == null) msgs=n...
<!-- begin-user-doc --> <!-- end-user-doc -->
public ObjectNotFoundException(List<LocalizedText> messages){ super(messages); }
Constructs a new exception with the specified localized text messages. The cause is not initialized.
public ReadOnlyFileSystemException(){ }
Constructs an instance of this class.
public void writeToNBT(final NBTTagCompound nbt){ final NBTTagList modulesNbt=new NBTTagList(); for ( final Module module : modules) { final NBTTagCompound moduleNbt=new NBTTagCompound(); if (module != null) { module.writeToNBT(moduleNbt); } modulesNbt.appendTag(moduleNbt); } nbt.setTag(T...
Write the state of all modules and pipes to the specified NBT tag.
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public static float function2(float x){ return x * x * x* x* x - 2 * x * x* x + x; }
Fifth-order polynomial.
public static Number add(Number a,Number b){ if (isFloatingPoint(a) || isFloatingPoint(b)) { return a.doubleValue() + b.doubleValue(); } else { return a.longValue() + b.longValue(); } }
Returns the value of adding the two numbers
public void testUnivariateTEforCoupledVariablesFromFile() throws Exception { ArrayFileReader afr=new ArrayFileReader("demos/data/2coupledRandomCols-1.txt"); double[][] data=afr.getDouble2DMatrix(); double[] col0=MatrixUtils.selectColumn(data,0); double[] col1=MatrixUtils.selectColumn(data,1); col0=MatrixUtils...
Test the computed univariate TE against that calculated by Wibral et al.'s TRENTOOL on the same data. To run TRENTOOL (http://www.trentool.de/) for this data, run its TEvalues.m matlab script on the multivariate source and dest data sets as: TEvalues(source, dest, 1, 1, 1, kraskovK, 0) with these values ensuring sourc...
public String app_source_path(String app_class){ String filename=app_class.replace(".","/"); filename=filename.replaceFirst("[$][0-9]+",""); if (filename.indexOf("$") > 0) { filename=filename.substring(0,filename.indexOf("$")); } return "../jsrc/" + filename + ".java.html"; }
Returns the relative path from the android directory to the source html created by java2html
public Pair<BigDecimal,BigDecimal> findQuantity(final Collection<Warehouse> warehouses,final String productSkuCode){ final List<Object> warehouseIdList=new ArrayList<Object>(warehouses.size()); for ( Warehouse wh : warehouses) { warehouseIdList.add(wh.getWarehouseId()); } final List rez=getGenericDao().fin...
Get the sku's Quantity - Reserved quantity pair.
private void checkMatrix(){ for ( Node variable : variables) { if (variable == null) { throw new NullPointerException(); } } if (sampleSize < 1) { throw new IllegalArgumentException("Sample size must be at least 1."); } for (int i=0; i < matrix.rows(); i++) { for (int j=0; j < matrix.co...
Checks the sample size, variable, and matrix information.
public DummyDataSource(){ }
Create new instance.
private int hash(String name){ assert name.intern() == name; return name.hashCode() & (hashTableMask); }
The hash function must be based on the name only, so that searches for {name,type} entries can be found in the same bucket.
@Override public boolean isConsciousProcessingRequired(){ return true; }
Wait until conscious is done to avoid database contention/deadlocks.
public boolean useForType(JavaType t){ switch (_appliesFor) { case NON_CONCRETE_AND_ARRAYS: while (t.isArrayType()) { t=t.getContentType(); } case OBJECT_AND_NON_CONCRETE: return (t.getRawClass() == Object.class) || !t.isConcrete(); case NON_FINAL: while (t.isArrayType()) { t=t.getContentType(); } ret...
Method called to check if the default type handler should be used for given type. Note: "natural types" (String, Boolean, Integer, Double) will never use typing; that is both due to them being concrete and final, and since actual serializers and deserializers will also ignore any attempts to enforce typing.
public void testFailure(Failure failure) throws Exception { String printedOutput=this.endCapture(); String printedOutputNoTrailingWS=printedOutput.replaceFirst("\\s+$",""); System.out.println("Running " + mostRecentTestName + ": "); System.out.println("===================================="); if (printedOutput...
Sets score to 0 and appends reason for failure and dumps a stack trace. TODO: Clean up this stack trace so it is not hideous. Other possible things we might want to consider including: http://junit.sourceforge.net/javadoc/org/junit/runner/notification/Failure.html.
public ChunkedInputStream(InputStream in,HttpClient hc,MessageHeader responses) throws IOException { this.in=in; this.responses=responses; this.hc=hc; state=STATE_AWAITING_CHUNK_HEADER; }
Creates a <code>ChunkedInputStream</code> and saves its arguments, for later use.
@Override public void run(){ amIActive=true; String inputFilesString=null; String arcFile=null; String whiteboxHeaderFile=null; int i=0; int row, col, rows, cols; String[] imageFiles; int numImages=0; int progress=0; double xllcenter=0; double yllcenter=0; double xllcorner=0; double yllcorner=...
Used to execute this plugin tool.
public IntArray(int capacity){ data=new int[capacity]; }
Create an int array with specified initial capacity.
@Override public void installBorderSettings(){ UIManager.put("DockView.singleDockableBorder",null); UIManager.put("DockView.tabbedDockableBorder",null); UIManager.put("DockView.maximizedDockableBorder",null); }
installs the borders
private String match(MBankStatementLine bsl){ if (m_matchers == null || bsl == null || bsl.getC_Payment_ID() != 0) return "--"; log.fine("match - " + bsl); BankStatementMatchInfo info=null; for (int i=0; i < m_matchers.length; i++) { if (m_matchers[i].isMatcherValid()) { info=m_matchers[i].getMatche...
Perform Match
public Value convert(Value v){ try { return v.convertTo(type); } catch ( DbException e) { if (e.getErrorCode() == ErrorCode.DATA_CONVERSION_ERROR_1) { String target=(table == null ? "" : table.getName() + ": ") + getCreateSQL(); throw DbException.get(ErrorCode.DATA_CONVERSION_ERROR_1,v.getSQL(...
Convert a value to this column's type.
private void fillBuf() throws IOException { int result=in.read(buf,0,buf.length); if (result == -1) { throw new EOFException(); } pos=0; end=result; }
Reads new input data into the buffer. Call only with pos == end or end == -1, depending on the desired outcome if the function throws.
public static void main(String[] args) throws Exception { if (args.length != 4) { System.out.println(); System.out.println("Usage: " + SerialUIDChanger.class.getName() + " <oldUID> <newUID> <oldFilename> <newFilename>"); System.out.println(" <oldFilename> and <newFilename> have to be different"); ...
exchanges an old UID for a new one. a file that doesn't end with ".koml" is considered being binary. takes four arguments: oldUID newUID oldFilename newFilename
public void sendEmptyDataChunk() throws NetworkException { msrpMgr.sendEmptyChunk(); }
Send an empty data chunk
public boolean commitCorrection(CorrectionInfo correctionInfo){ return false; }
Default implementation does nothing and returns false.
public void testSimpleWatchActionMulti() throws Exception { WatchManager<String> em=new WatchManager<String>(); StringWatchAction action=new StringWatchAction(3); Watch<String> w=em.watch(new StringWatchPredicate("hello"),3,action); for (int i=0; i < 3; i++) { assertNull("Action not taken before match: " + ...
Prove that an action associated with a watch is executed on the task ID for which the watch has just matched.
public boolean hasInitialResponse(){ return true; }
This mechanism has an initial response.
protected boolean matches(Node object){ if (object instanceof Element) { Element element=(Element)object; return name.equals(element.getName()); } return false; }
DOCUMENT ME!
public boolean showJavaScriptSites(){ return mContentSettingsType == ContentSettingsType.CONTENT_SETTINGS_TYPE_JAVASCRIPT; }
Returns whether this category is the JavaScript category.
public boolean isSortingCategories(){ return sortingCategories; }
Get whether this model is currently sorting categories.
public PacProxyException(){ super(); }
Creates a new PacProxyException.
public void allZero(){ this.coeff_domlength=0; this.coeff_date=0; this.coeff_wordsintitle=0; this.coeff_wordsintext=0; this.coeff_phrasesintext=0; this.coeff_llocal=0; this.coeff_lother=0; this.coeff_urllength=0; this.coeff_urlcomps=0; this.coeff_hitcount=0; this.coeff_posintext=0; this.coeff_po...
set all ranking attributes to zero This is usually used when a specific value is set to maximum
public final boolean isTopLevel(){ return outerClass == null || isStatic() || isInterface(); }
Tell if the class is "top-level", which is either a package member, or a static member of another top-level class.
@Override protected EClass eStaticClass(){ return N4JSPackage.Literals.SCRIPT_ELEMENT; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public Type1Font(String baseName,PDFObject src,PDFFontDescriptor descriptor) throws IOException { super(baseName,src,descriptor); if (descriptor != null && descriptor.getFontFile() != null) { int start=descriptor.getFontFile().getDictRef("Length1").getIntValue(); int len=descriptor.getFontFile().getDictRef(...
create a new Type1Font based on a font data stream and an encoding.
public static double sortingAUC(ArrayList<Tuple2D> data){ double P=sumTruth(data); double N=data.size() - P; double n=data.size(); double lastpred=data.get(0).pred - 1.; double lastx=0, lasty=0; double x, y; double tp=0, fp=0; double auc=0; for ( Tuple2D tuple : data) { if (tuple.pred != lastpred...
requires input to be sorted by class1, though it doesn't check
public LinearLocation toLowest(Geometry linearGeom){ LineString lineComp=(LineString)linearGeom.getGeometryN(componentIndex); int nseg=lineComp.getNumPoints() - 1; if (segmentIndex < nseg) return this; return new LinearLocation(componentIndex,nseg,1.0,false); }
Converts a linear location to the lowest equivalent location index. The lowest index has the lowest possible component and segment indices. <p> Specifically: <ul> <li>if the location point is an endpoint, a location value is returned as (nseg-1, 1.0) <li>if the location point is ambiguous (i.e. an endpoint and a startp...
public void extractAudioWaveform(ExtractAudioWaveformProgressListener listener) throws IOException { int frameDuration=0; int sampleCount=0; final String projectPath=mMANativeHelper.getProjectPath(); if (mAudioWaveformFilename == null) { String mAudioWaveFileName=null; mAudioWaveFileName=String.format(p...
This API allows to generate a file containing the sample volume levels of the Audio track of this media item. This function may take significant time and is blocking. The file can be retrieved using getAudioWaveformFilename().
public void actionPerformed(ActionEvent e){ log.fine("VPayment.actionPerformed - " + e.getActionCommand()); if (e.getActionCommand().equals(ConfirmPanel.A_OK)) { if (checkMandatory()) { saveChanges(); dispose(); } } else if (e.getActionCommand().equals(ConfirmPanel.A_CANCEL)) dispose(); ...
Action Listener
protected int read(byte[] buffer) throws IOException { return mTiffStream.read(buffer); }
Equivalent to read(buffer, 0, buffer.length).
public URL find(String classname){ if (this.classname.equals(classname)) { String cname=classname.replace('.','/') + ".class"; try { return new URL("file:/ByteArrayClassPath/" + cname); } catch ( MalformedURLException e) { } } return null; }
Obtains the URL.
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
Returns a clone of the entity.
public void selectInList(String listName,int offset){ TestUtils.selectInList(listName,offset); }
This method just invokes the test utils method, it is here for convenience
public MarketService updateUrl(String url){ this.updateUrl=url; return this; }
Set the destination url of the default update button.
public void invert(final int ulx,final int uly,final int lrx,final int lry){ filter(ulx,uly,lrx,lry,FilterMode.FILTER_INVERT,-1); }
invert filter for a square part of the image
public void addModel(ModelInstance instance){ instances.add(instance); }
Render only
boolean isHandshakeComplete(){ return handshakeComplete; }
Check if handshake is completed.
public StackBlurFilter(){ this(3,3); }
<p>Creates a new blur filter with a default radius of 3 and 3 iterations.</p>
public static CC parseComponentConstraint(String s){ CC cc=new CC(); if (s.length() == 0) return cc; String[] parts=toTrimmedTokens(s,','); for ( String part : parts) { try { if (part.length() == 0) continue; int ix=-1; char c=part.charAt(0); if (c == 'n') { if (part...
Parses one component constraint and returns the parsed value.
@Override public void removeConnection(Connection connection){ super.removeConnection(connection); if (this.getConnections().isEmpty()) { this.setValue(this.getSocketHint().createInitialValue().orElse(null)); } }
Reset the socket to its default value when it's no longer connected to anything. This prevents removed connections from continuing to have an effect on steps because they still hold references to the values they were connected to.
@Override protected void after(){ ActiveMQTestBase.deleteDirectory(new File(folderName)); }
Override to tear down your specific external resource.
private int runClientSide(String args[],String serviceUrlStr) throws Exception { List<String> opts=buildCommandLine(args); opts.add("-serviceUrl"); opts.add(serviceUrlStr); int exitCode=0; String[] optsArray=opts.toArray(new String[0]); ProcessBuilder pb=new ProcessBuilder(optsArray); Process p=ProcessToo...
Runs AuthorizationTest$ClientSide with the passed options and redirects subprocess standard I/O to the current (parent) process. This provides a trace of what happens in the subprocess while it is runnning (and before it terminates).
public static boolean pickDirectory(Activity activity,File startPath,int requestCode){ PackageManager packageMgr=activity.getPackageManager(); for ( String[] intent : PICK_DIRECTORY_INTENTS) { String intentAction=intent[0]; String uriPrefix=intent[1]; Intent startIntent=new Intent(intentAction).putExtr...
Tries to open a known file browsers to pick a directory.
public Object opt(String key){ return key == null ? null : this.map.get(key); }
Get an optional value associated with a key.
public void close(){ }
Close the result list and delete the temporary file.
protected SVGOMFlowRegionExcludeElement(){ }
Creates a new BatikRegularPolygonElement object.
public String query(SolrQueryRequest req) throws Exception { return query(req.getParams().get(CommonParams.QT),req); }
Processes a "query" using a user constructed SolrQueryRequest