hudson.plugins.analysis.util
Class CsharpNamespaceDetector
java.lang.Object
hudson.plugins.analysis.util.AbstractPackageDetector
hudson.plugins.analysis.util.CsharpNamespaceDetector
- All Implemented Interfaces:
- PackageDetector
public class CsharpNamespaceDetector
- extends AbstractPackageDetector
Detects the namespace of a C# workspace file.
- Author:
- Ulli Hafner
|
Method Summary |
boolean |
accepts(String fileName)
Returns whether this classifier accepts the specified file for
processing. |
String |
detectPackageName(InputStream stream)
Detects the package or namespace name of the specified input stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CsharpNamespaceDetector
public CsharpNamespaceDetector()
accepts
public boolean accepts(String fileName)
- Returns whether this classifier accepts the specified file for
processing.
- Parameters:
fileName - the file name
- Returns:
true if the classifier accepts the specified file
for processing.
detectPackageName
public String detectPackageName(InputStream stream)
- Detects the package or namespace name of the specified input stream. The
stream must be closed afterwards.
- Parameters:
stream - the content of the file to scan
- Returns:
- the detected package or namespace name
Copyright © 2004-2012 Hudson. All Rights Reserved.