हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ClassPathScanner
public
class
ClassPathScanner
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.ClassPathScanner
|
क्लासपाथ पर एंट्री ढूंढता है.
vogar.target.ClassPathScanner से अनुकूलित
खास जानकारी
पब्लिक कंस्ट्रक्टर
ClassPathScanner
public ClassPathScanner ()
सार्वजनिक तरीके
getClassPath
public static String[] getClassPath ()
सिस्टम प्रॉपर्टी "java.class.path" से क्लास पाथ पाता है और उसे अलग-अलग एलिमेंट में बांटता है.
getClassPathEntriesFromJar
public getClassPathEntriesFromJar (ClassPathScanner.IClassPathFilter filter)
यह दिए गए IClassPathFilter
से मैच करने वाली क्लासपथ एंट्री का सेट ढूंढता है और उन्हें उस JAR के साथ दिखाता है जिससे वे आते हैं. इसका इस्तेमाल, फ़ाइलों के सोर्स की पुष्टि करने के लिए किया जाता है.
पैरामीटर |
filter |
ClassPathScanner.IClassPathFilter |
getEntriesFromDir
public getEntriesFromDir (File classPathDir,
ClassPathScanner.IClassPathFilter filter)
यह फ़ंक्शन, दी गई क्लास पाथ डायरेक्ट्री में मौजूद उन सभी एंट्री के नाम दिखाता है जो दिए गए फ़िल्टर से मैच करती हैं
पैरामीटर |
classPathDir |
File |
filter |
ClassPathScanner.IClassPathFilter |
getEntriesFromJar
public getEntriesFromJar (File plainFile,
ClassPathScanner.IClassPathFilter filter)
दिए गए फ़िल्टर से मैच करने वाली, दी गई jar फ़ाइल में मौजूद सभी एंट्री के नाम दिखाता है
पैरामीटर |
plainFile |
File |
filter |
ClassPathScanner.IClassPathFilter |
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# ClassPathScanner\n================\n\n\n`\npublic\n\n\nclass\nClassPathScanner\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.ClassPathScanner |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nFinds entries on classpath.\n\nAdapted from vogar.target.ClassPathScanner\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| ### Nested classes ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` class` | [ClassPathScanner.ClassNameFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.ClassNameFilter.html) A [IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html) that filters and transforms java class names. |\n| ` class` | [ClassPathScanner.ExternalClassNameFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.ExternalClassNameFilter.html) A [ClassNameFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.ClassNameFilter.html) that rejects inner classes |\n| ` interface` | [ClassPathScanner.IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html) A filter for classpath entry paths \u003cbr /\u003e Patterned after [FileFilter](../../../../../../reference/tradefed/java/io/FileFilter.html) \u003cbr /\u003e |\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[ClassPathScanner](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.html#ClassPathScanner())`() ` |\n\n| ### Public methods ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static String[]` | ` `[getClassPath](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.html#getClassPath())`() ` Gets the class path from the System Property \"java.class.path\" and splits it up into the individual elements. |\n| ` ` | ` `[getClassPathEntries](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.html#getClassPathEntries(com.android.tradefed.util.ClassPathScanner.IClassPathFilter))`(`[ClassPathScanner.IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html)` filter) ` Retrieves set of classpath entries that match given [IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html) |\n| ` ` | ` `[getClassPathEntriesFromJar](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.html#getClassPathEntriesFromJar(com.android.tradefed.util.ClassPathScanner.IClassPathFilter))`(`[ClassPathScanner.IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html)` filter) ` Retrieves set of classpath entries that match given [IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html) and returns them with which JAR they come from. |\n| ` ` | ` `[getEntriesFromDir](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.html#getEntriesFromDir(File,%20com.android.tradefed.util.ClassPathScanner.IClassPathFilter))`(File classPathDir, `[ClassPathScanner.IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html)` filter) ` Gets the names of all entries contained in given class path directory, that match given filter |\n| ` ` | ` `[getEntriesFromJar](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.html#getEntriesFromJar(File,%20com.android.tradefed.util.ClassPathScanner.IClassPathFilter))`(File plainFile, `[ClassPathScanner.IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html)` filter) ` Gets the names of all entries contained in given jar file, that match given filter |\n\nPublic constructors\n-------------------\n\n### ClassPathScanner\n\n```\npublic ClassPathScanner ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### getClassPath\n\n```\npublic static String[] getClassPath ()\n```\n\nGets the class path from the System Property \"java.class.path\" and splits\nit up into the individual elements.\n\n\u003cbr /\u003e\n\n| Returns ||\n|------------|--------|\n| `String[]` | \u003cbr /\u003e |\n\n### getClassPathEntries\n\n```\npublic getClassPathEntries (../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html filter)\n```\n\nRetrieves set of classpath entries that match given [IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html)\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|--------------------------------------------|\n| `filter` | `ClassPathScanner.IClassPathFilter` \u003cbr /\u003e |\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### getClassPathEntriesFromJar\n\n```\npublic getClassPathEntriesFromJar (../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html filter)\n```\n\nRetrieves set of classpath entries that match given [IClassPathFilter](../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html) and returns them\nwith which JAR they come from. Used to validate origin of files.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|--------------------------------------------|\n| `filter` | `ClassPathScanner.IClassPathFilter` \u003cbr /\u003e |\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### getEntriesFromDir\n\n```\npublic getEntriesFromDir (File classPathDir, \n ../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html filter)\n```\n\nGets the names of all entries contained in given class path directory, that match given\nfilter\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------|--------------------------------------------|\n| `classPathDir` | `File` \u003cbr /\u003e |\n| `filter` | `ClassPathScanner.IClassPathFilter` \u003cbr /\u003e |\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n| Throws ||\n|---|-------------|\n| | IOException |\n\n### getEntriesFromJar\n\n```\npublic getEntriesFromJar (File plainFile, \n ../../../../../../reference/tradefed/com/android/tradefed/util/ClassPathScanner.IClassPathFilter.html filter)\n```\n\nGets the names of all entries contained in given jar file, that match given filter\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|--------------------------------------------|\n| `plainFile` | `File` \u003cbr /\u003e |\n| `filter` | `ClassPathScanner.IClassPathFilter` \u003cbr /\u003e |\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n| Throws ||\n|---|-------------|\n| | IOException |"]]