java使用wsdlreader,Java WSDLReader.setFeature方法代碼示例

本文整理匯總了Java中javax.wsdl.xml.WSDLReader.setFeature方法的典型用法代碼示例。如果您正苦於以下問題:Java WSDLReader.setFeature方法的具體用法?Java WSDLReader.setFeature怎麽用?Java WSDLReader.setFeature使用的例子?那麽恭喜您, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.wsdl.xml.WSDLReader的用法示例。

在下文中一共展示了WSDLReader.setFeature方法的21個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於我們的係統推薦出更棒的Java代碼示例。

示例1: getPortTypeOperations

​點讚 4

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* 參考SoapMessageBuilder.SoapMessageBuilder(URL wsdlUrl)方法

* 獲取portType中的所有operation

*

* @param wsdlUrl

* @return

*/

private static List getPortTypeOperations(String wsdlUrl) {

List operationList = new ArrayList();

try {

WSDLReader reader = new WSDLReaderImpl();

reader.setFeature("javax.wsdl.verbose", false);

Definition definition = reader.readWSDL(wsdlUrl.toString());

Map defMap = definition.getAllPortTypes();

Collection collection = defMap.values();

for (PortTypeImpl portType : collection) {

operationList.addAll(portType.getOperations());

}

} catch (WSDLException e) {

System.out.println("get wsdl operation fail.");

e.printStackTrace();

}

return operationList;

}

開發者ID:wuxinshui,項目名稱:boosters,代碼行數:25,

示例2: getWSDL11Parser

​點讚 3

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

public static synchronized WSDL11Parser getWSDL11Parser(String wsdlLocation) throws WSDLException, IOException {

WSDL11Parser parser = null;

if (parsers == null) {

parsers = new TreeMap();

} else {

parser = parsers.get(wsdlLocation);

}

if (parser == null) {

WSDLFactory factory = WSDLFactory.newInstance();

WSDLReader reader = factory.newWSDLReader();

reader.setFeature("javax.wsdl.verbose", false);

Definition definition = reader.readWSDL(wsdlLocation);

parser = new WSDL11Parser(definition);

parsers.put(wsdlLocation, parser);

}

return parser;

}

開發者ID:apache,項目名稱:incubator-taverna-common-activities,代碼行數:23,

示例3: readWSDL

​點讚 3

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* Read the WSDL document and create a WSDL Definition.

*

* @param wsdlLocation location pointing to a WSDL XML definition.

* @return the Definition.

* @throws WSDLException If unable to read the WSDL

*/

public static Definition readWSDL(final String wsdlLocation) throws WSDLException {

InputStream inputStream = null;

try {

URL url = getURL(wsdlLocation);

inputStream = url.openStream();

InputSource source = new InputSource(inputStream);

source.setSystemId(url.toString());

Document wsdlDoc = XMLHelper.getDocument(source);

WSDLFactory wsdlFactory = WSDLFactory.newInstance();

WSDLReader reader = wsdlFactory.newWSDLReader();

reader.setFeature("javax.wsdl.verbose", false);

return reader.readWSDL(url.toString(), wsdlDoc);

} catch (Exception e) {

throw new WSDLException(WSDLException.OTHER_ERROR,

SOAPMessages.MESSAGES.unableToReadWSDL(wsdlLocation), e);

} finally {

if (inputStream != null) {

try {

inputStream.close();

} catch (IOException ioe) {

LOGGER.error(ioe);

}

}

}

}

開發者ID:jboss-switchyard,項目名稱:switchyard,代碼行數:33,

示例4: readInTheWSDLFile

​點讚 3

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* Read the WSDL file

*

* @param uri

* @throws WSDLException

*/

public Definition readInTheWSDLFile(final String uri) throws WSDLException {

WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();

reader.setFeature("javax.wsdl.importDocuments", true);

ExtensionRegistry extReg = WSDLFactory.newInstance().newPopulatedExtensionRegistry();

extReg.registerExtensionAttributeType(Input.class,

new QName(AddressingConstants.Final.WSAW_NAMESPACE, AddressingConstants.WSA_ACTION),

AttributeExtensible.STRING_TYPE);

extReg.registerExtensionAttributeType(Output.class,

new QName(AddressingConstants.Final.WSAW_NAMESPACE, AddressingConstants.WSA_ACTION),

AttributeExtensible.STRING_TYPE);

reader.setExtensionRegistry(extReg);

return reader.readWSDL(uri);

}

開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:24,

示例5: parseWSDLDefinition

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* Parse the WSDL definition using WSDL4J.

*/

protected Definition parseWSDLDefinition() throws WSDLException {

WSDLFactory wsdlFactory = WSDLFactory.newInstance();

WSDLReader reader = wsdlFactory.newWSDLReader();

reader.setFeature("javax.wsdl.verbose", false);

reader.setFeature("javax.wsdl.importDocuments", true);

Definition definition = reader.readWSDL(this.wsdlLocation);

return definition;

}

開發者ID:flowable,項目名稱:flowable-engine,代碼行數:12,

示例6: getAllBindingOperation

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* 參考SoapMessageBuilder.SoapMessageBuilder(URL wsdlUrl)方法

* 獲取binding節點的所有operation

*

* @param wsdlUrl

* @return

*/

public static List getAllBindingOperation(String wsdlUrl) {

List operationList = new ArrayList();

List nameList = new ArrayList();

try {

WSDLReader reader = new WSDLReaderImpl();

reader.setFeature("javax.wsdl.verbose", false);

Definition definition = reader.readWSDL(wsdlUrl.toString());

Map defMap = definition.getAllBindings();

Collection collection = defMap.values();

for (BindingImpl binding : collection) {

operationList.addAll(binding.getBindingOperations());

}

for (BindingOperation operation:operationList) {

nameList.add(operation.getName());

}

} catch (WSDLException e) {

System.out.println("get wsdl operation fail.");

e.printStackTrace();

}

return nameList;

}

開發者ID:wuxinshui,項目名稱:boosters,代碼行數:29,

示例7: get

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

public synchronized Definition get( String url )

throws WSDLException

{

Definition definition = cache.get( url );

if ( definition == null ) {

WSDLReader reader = factory.newWSDLReader();

reader.setFeature( "javax.wsdl.verbose", false );

definition = reader.readWSDL( url );

cache.put( url, definition );

}

return definition;

}

開發者ID:jolie,項目名稱:jolie,代碼行數:13,

示例8: getWSDLDefinition

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

private Definition getWSDLDefinition(String wsdlLocation) throws Exception

{

WSDLFactory wsdlFactory = WSDLFactory.newInstance();

WSDLReader wsdlReader = wsdlFactory.newWSDLReader();

wsdlReader.setFeature("javax.wsdl.importDocuments", false);

wsdlReader.setFeature("javax.wsdl.verbose", false);

Definition definition = wsdlReader.readWSDL(null, wsdlLocation);

return definition;

}

開發者ID:jbossws,項目名稱:jbossws-cxf,代碼行數:11,

示例9: parseWSDLDefinition

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* Parse the WSDL definition using WSDL4J.

*/

private Definition parseWSDLDefinition() throws WSDLException {

WSDLFactory wsdlFactory = WSDLFactory.newInstance();

WSDLReader reader = wsdlFactory.newWSDLReader();

reader.setFeature("javax.wsdl.verbose", false);

reader.setFeature("javax.wsdl.importDocuments", true);

Definition definition = reader.readWSDL(this.wsdlLocation);

return definition;

}

開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:12,

示例10: getDefinition

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

public static Definition getDefinition(IFile pathToWsdl) throws CoreException {

try {

WSDLFactory wsdlFactory = WSDLFactory.newInstance();

WSDLReader newWSDLReader = wsdlFactory.newWSDLReader();

newWSDLReader.setExtensionRegistry(wsdlFactory.newPopulatedExtensionRegistry());

newWSDLReader.setFeature(com.ibm.wsdl.Constants.FEATURE_VERBOSE, false);

return newWSDLReader.readWSDL(pathToWsdl.getLocationURI().toString());

} catch (WSDLException e) {

throw getCoreException(null, e);

}

}

開發者ID:Talend,項目名稱:tesb-studio-se,代碼行數:13,

示例11: load

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

public static Definition load(String wsdlLocation, String filenamePrefix) throws InvocationTargetException, WSDLException {

WSDLFactory wsdlFactory = WSDLFactory.newInstance();

WSDLReader newWSDLReader = wsdlFactory.newWSDLReader();

newWSDLReader.setExtensionRegistry(wsdlFactory.newPopulatedExtensionRegistry());

newWSDLReader.setFeature(com.ibm.wsdl.Constants.FEATURE_VERBOSE, false);

return newWSDLReader.readWSDL(new InMemoryWSDLLocator(wsdlLocation, new WSDLLoader().load(wsdlLocation, filenamePrefix

+ "%d.wsdl")));

}

開發者ID:Talend,項目名稱:tesb-studio-se,代碼行數:10,

示例12: setUp

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

protected void setUp() throws Exception {

super.setUp();

WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();

reader.setFeature("javax.wsdl.importDocuments", false);

reader.setFeature("javax.wsdl.verbose", false);

URL wsdlFile = new File(AbstractTestCase.basedir + testWSDLFile)

.toURL();//getClass().getClassLoader().getResource(testWSDLFile);

definition = reader.readWSDL(wsdlFile.toString());

}

開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:11,

示例13: configureReaderInstance

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* This will be called to configure the WSDLReader instance.

*/

public void configureReaderInstance(WSDLReader reader) throws WSDLException

{

// prevent the WSDLReader instance from using the System.out

// stream for messages and logging

reader.setFeature(com.ibm.wsdl.Constants.FEATURE_VERBOSE, false);

}

開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:10,

示例14: getReader

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* Get a WSDLReader.

*

* @return WSDLReader.

* @throws WSDLException on error.

*/

private WSDLReader getReader() throws WSDLException {

WSDLFactory wsdlFactory = WSDLFactory.newInstance();

WSDLReader wsdlReader = wsdlFactory.newWSDLReader();

ExtensionRegistry registry = wsdlFactory.newPopulatedExtensionRegistry();

wsdlReader.setExtensionRegistry(registry);

wsdlReader.setFeature("javax.wsdl.verbose", true);

wsdlReader.setFeature("javax.wsdl.importDocuments", true);

return wsdlReader;

}

開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:17,

示例15: readWsdl

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

private static Definition readWsdl(String wsdlUrl, boolean verbose, boolean resolveImports) {

try {

WSDLFactory factory = WSDLFactory.newInstance();

WSDLReader reader = factory.newWSDLReader();

reader.setFeature(Constants.FEATURE_VERBOSE, verbose);

reader.setFeature(Constants.FEATURE_IMPORT_DOCUMENTS, resolveImports);

return reader.readWSDL(wsdlUrl);

} catch (WSDLException ex) {

throw new RuntimeException(ex);

}

}

開發者ID:whummer,項目名稱:service-prefetching,代碼行數:12,

示例16: parseServiceWSDL

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

public static Definition parseServiceWSDL(String wsdlLocation) throws WSDLException {

WSDLFactory factory = WSDLFactory.newInstance();

WSDLReader wsdlReader = factory.newWSDLReader();

wsdlReader.setFeature("javax.wsdl.verbose", LOG.isDebugEnabled());

wsdlReader.setFeature("javax.wsdl.importDocuments", true);

Definition mainDefinition = wsdlReader.readWSDL(wsdlLocation);

return mainDefinition;

}

開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:11,

示例17: scanArchive

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

private static void scanArchive(InputStream in, boolean isWar, List messages) throws Exception {

JarInputStream jar = new JarInputStream(in);

JarEntry entry;

List wsImplementations = new ArrayList();

WSDLResources wsdlResources = new WSDLResources();

while ((entry = jar.getNextJarEntry()) != null) {

String name = entry.getName();

if ((!isWar || name.startsWith("WEB-INF/classes/")) && name.endsWith(".class")) {

new ClassReader(jar).accept(new WebServiceAnnotationExtractor(wsImplementations), 0);

} else if (!isWar && name.startsWith("META-INF/wsdl/")

|| isWar && name.startsWith("WEB-INF/wsdl/")) {

wsdlResources.add(name, IOUtils.toByteArray(jar));

}

}

WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();

wsdlReader.setFeature("javax.wsdl.verbose", false);

for (WebServiceImplementation wsImplementation : wsImplementations) {

String className = wsImplementation.getClassName();

String wsdlLocation = wsImplementation.getWsdlLocation();

if (wsdlLocation == null) {

messages.add("[" + className + "] No wsdlLocation specified");

} else {

try {

Definition definitions = wsdlReader.readWSDL(wsdlResources.getWsdl(wsdlLocation));

QName serviceQName = new QName(wsImplementation.getTargetNamespace(), wsImplementation.getServiceName());

Service service = definitions.getService(serviceQName);

if (service == null) {

messages.add("[" + className + "] Service " + serviceQName + " not found in WSDL");

} else if (service.getPort(wsImplementation.getPortName()) == null) {

messages.add("[" + className + "] Port " + wsImplementation.getPortName() + " not found in service " + serviceQName);

}

} catch (WSDLNotFoundException ex) {

messages.add("[" + className + "] Document not found or in wrong place: " + ex.getName());

}

}

}

}

開發者ID:veithen,項目名稱:visualwas,代碼行數:38,

示例18: getReader

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

/**

* Get a WSDLReader.

*

* @return WSDLReader.

* @throws WSDLException

* on error.

*/

private WSDLReader getReader() throws WSDLException {

WSDLFactory wsdlFactory = WSDLFactory.newInstance();

WSDLReader wsdlReader = wsdlFactory.newWSDLReader();

ExtensionRegistry registry = wsdlFactory.newPopulatedExtensionRegistry();

wsdlReader.setExtensionRegistry( registry );

wsdlReader.setFeature( "javax.wsdl.verbose", true );

wsdlReader.setFeature( "javax.wsdl.importDocuments", true );

return wsdlReader;

}

開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:18,

示例19: validaWSDLFromURI

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

private static WSDLValidationInfo validaWSDLFromURI(String uri) throws Exception {

InputStream inputStream = null;

try {

inputStream = new URL(uri).openStream();

ResourceBundle rb = ResourceBundle.getBundle("validatewsdl");

MessageGenerator messagegenerator = new MessageGenerator(rb);

DocumentBuilder db;

DocumentBuilderFactory dbf = getSecuredDocumentBuilder();

dbf.setNamespaceAware(true);

try {

db = dbf.newDocumentBuilder();

} catch (Exception e) {

dbf = DocumentBuilderFactory.newInstance();

db = dbf.newDocumentBuilder();

}

Document doc = db.parse(inputStream);

WSDLReader reader = new ExWSDLReaderImpl(

(com.ibm.wsdl.xml.WSDLReaderImpl) WSDLFactory.newInstance().newWSDLReader());

reader.setFeature("javax.wsdl.importDocuments", true);

reader.setFeature("javax.wsdl.verbose", log.isDebugEnabled());

Definition wsdlDefinition = reader.readWSDL(uri);

ControllerValidationInfo validateInfo = new ValidationInfoImpl(uri, messagegenerator);

URIResolver uriResolver = new URIResolver();

((ValidationInfoImpl) validateInfo).setURIResolver(uriResolver);

/*java.util.Hashtable attributes = new java.util.Hashtable();

((ValidationInfoImpl) validateInfo).setAttributes(attributes);*/

WSDL11ValidationInfoImpl info = new WSDL11ValidationInfoImpl(validateInfo);

info.setElementLocations(new java.util.Hashtable());

WSDL11BasicValidator validator = new WSDL11BasicValidator();

registerExtensionValidators(validator.getClass().getClassLoader());

/*validator.setResourceBundle(rb);*/

IValidationMessage[] messages;

ExtendedWSDL11ValidatorController wsdl11ValidatorController =

new ExtendedWSDL11ValidatorController();

WSDLDocument[] wsdlDocs = wsdl11ValidatorController.readWSDLDocument(doc,

validateInfo.getFileURI(),

messagegenerator,

info);

WSDLDocument document = wsdlDocs[0];

List schema = document.getSchemas();

Iterator xsdIter = schema.iterator();

while (xsdIter.hasNext()) {

info.addSchema((XSModel) xsdIter.next());

}

// Set the element locations table.

info.setElementLocations(document.getElementLocations());

validator.validate(wsdlDefinition, new ArrayList(), info);

messages = validateInfo.getValidationMessages();

WSDLValidationInfo wsdlValidationInfo = new WSDLValidationInfo();

if (messages.length > 0) {

wsdlValidationInfo.setStatus(INVALID);

} else {

wsdlValidationInfo.setStatus(VALID);

}

for (IValidationMessage message : messages) {

String messageString =

"[" + message.getLine() + "][" + message.getColumn() + "]"

+ message.getMessage();

wsdlValidationInfo.addValidationMessage(messageString);

}

return wsdlValidationInfo;

} finally {

if (inputStream != null) {

inputStream.close();

}

}

}

開發者ID:wso2,項目名稱:carbon-registry,代碼行數:75,

示例20: validaWSDLFromURI

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

private WSDLValidationInfo validaWSDLFromURI(InputStream stream) throws Exception {

InputStream inputStream = null;

URL url;

try {

String sanitizedXMLString = sanitizeXMLFileData(stream);

Document doc = secureParseXML(sanitizedXMLString);

url = loadXMLToFile(doc);

inputStream = url.openStream();

ResourceBundle rb = ResourceBundle.getBundle("validatewsdl");

MessageGenerator messagegenerator = new MessageGenerator(rb);

WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();

reader.setFeature("javax.wsdl.importDocuments", true);

Definition wsdlDefinition = reader.readWSDL(url.toString());

ControllerValidationInfo validateInfo = new ValidationInfoImpl(url.toString(),

messagegenerator);

URIResolver uriResolver = new URIResolver();

((ValidationInfoImpl) validateInfo).setURIResolver(uriResolver);

/*java.util.Hashtable attributes = new java.util.Hashtable();

((ValidationInfoImpl) validateInfo).setAttributes(attributes);*/

WSDL11ValidationInfoImpl info = new WSDL11ValidationInfoImpl(validateInfo);

info.setElementLocations(new java.util.Hashtable());

WSDL11BasicValidator validator = new WSDL11BasicValidator();

// registerExtensionValidators(validator.getClass().getClassLoader());

/*validator.setResourceBundle(rb);*/

IValidationMessage[] messages;

ExtendedWSDL11ValidatorController wsdl11ValidatorController =

new ExtendedWSDL11ValidatorController();

WSDLDocument[] wsdlDocs = wsdl11ValidatorController.readWSDLDocument(doc,

validateInfo.getFileURI(),

messagegenerator,

info);

WSDLDocument document = wsdlDocs[0];

List schema = document.getSchemas();

for (Object aSchema : schema) {

info.addSchema((XSModel) aSchema);

}

// Set the element locations table.

info.setElementLocations(document.getElementLocations());

validator.validate(wsdlDefinition, new ArrayList(), info);

messages = validateInfo.getValidationMessages();

WSDLValidationInfo wsdlValidationInfo = new WSDLValidationInfo();

if (messages.length > 0) {

wsdlValidationInfo.setStatus(WSDL_INVALID);

} else {

wsdlValidationInfo.setStatus(WSDL_VALID);

}

for (IValidationMessage message : messages) {

String messageString =

"[" + message.getLine() + "][" + message.getColumn() + "]"

+ message.getMessage();

wsdlValidationInfo.addValidationMessage(messageString);

}

return wsdlValidationInfo;

} finally {

if (inputStream != null) {

inputStream.close();

}

}

}

開發者ID:wso2,項目名稱:carbon-commons,代碼行數:66,

示例21: wsdlReader

​點讚 2

import javax.wsdl.xml.WSDLReader; //導入方法依賴的package包/類

private WSDLReader wsdlReader() {

WSDLReader reader = factory.newWSDLReader();

reader.setFeature("javax.wsdl.verbose", true); // true by default

reader.setFeature("javax.wsdl.importDocuments", true); // true by default

return reader;

}

開發者ID:tadayosi,項目名稱:samples-jbossws,代碼行數:7,

注:本文中的javax.wsdl.xml.WSDLReader.setFeature方法示例整理自Github/MSDocs等源碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/554502.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

如何进行系统还原

在我们使用电脑的时候有时候要对系统进行还原,那么你知道如何进行系统还原吗?不知道的小伙伴一起来操作一遍吧。 1 第一步 鼠标单击左下角的开始菜单,选择设置,进入页面 如何进行系统还原 2 第二步 单击更新和安全,选择左侧的恢…

搜狐视频开放平台的申请使用方法

软件是否好用,还得大家下载搜狐视频安装才知道。本文分享搜狐视频开放平台的申请使用方法。搜狐视频电脑版是电脑桌面客户端应用,用户只要登录帐号就能够拥有云同步功能,无论是在家、出差都可以查看自己的视频观看记录,随时追剧。…

java guava限流,Guava的RateLimiter实现接口限流

最近开发需求中有需要对后台接口进行限流处理,整理了一下基本使用方法。首先添加guava依赖:com.google.guavaguava23.0然后封装RateLimiter适用对多接口的限制:import com.google.common.util.concurrent.RateLimiter;import org.springframework.util.StringUtils;…

电脑系统重装后没有声音怎么办​

电脑系统重装后没有声音怎么办,下面与大家分享下系统重装后没有声音怎么解决的教程。 1 第一步 鼠标右键单击此电脑,选择管理进入页面,单击设备管理器,展开声音、视频和游戏控制器,查看设备是否有问号,如果…

模糊聚类划分matlab代码,Matlab协同模糊聚类建模

%本程序实现了把协同模糊聚类算法和G-K算法相结合,构建T-S模型%并用该模型对数据进行测试%输入数据:%ytrain:训练数据的实际输出,是一个列向量%xtrain:训练数据矩阵,分为两组,每组的每行代表一个特征.每组特征不同%ytest:测试数据的实际输出,是一组列向量%xtest:测试数据矩阵,其…

php并发取源码,PHP读取大文件源码示例-Swoole多进程读取大文件

PHP读取大文件源码示例,通过PHP读取过大、超大型文件的思路及解决方案。在日常读取文件时,若文件 不是很大,通常使用file_get_contents,将内容一次性载入的变量中,也可以远程加载网页或者远端文件。若加载超过PHP限制的内存大小&a…

QQ如何设置会话窗默认使用腾讯视频播放视频文件

小编给大家整理了大量腾讯视频的使用方法和问题解决办法,这篇文章依然非常有价值,如果你遇到“QQ如何设置会话窗默认使用腾讯视频播放视频文件”方面的问题,赶紧看看吧。腾讯视频播放器推荐精准,越用越懂你,分秒就能计…

mysql 定期备份策略,MySQL--3--mysqldump备份策略

参考地址:http://doc.mysql.cn/mysql5/refman-5.1-zh.html-chapter/database-administration.html#backup-strategy-example5.9 备份策略在my.inf中启动二进制日志,用--log-bin[file_name]选项启动时,mysqld写入包含所有更新数据的SQL命令的日…

兔弟弟和月亮婆婆

有一天晚上,兔弟弟不想睡觉。他要去找小青蛙玩。兔妈妈摇摇头说:“乖孩子,睡觉吧。明天早些起来,找小青蛙玩去!” 兔弟弟不听妈妈的话,他说:“我要去,我要去,我不要睡觉!”兔妈妈不…

matlab问题利用M文件比较两个数大小,Matlab中写M文件及调用

1题、自然数n的阶乘function ylilu_fact(n)nfloor(n);%如果是小数,向下取整至整数y1;if n>1 %这里负数,0的阶乘都将得到1for i1:nyy*i;endend2题、n中取m的组合function ylilu_cnm(n,m)y1;if (n>m && n>0 & m>0)mmin(n-m,m);for i1:myy*(n-i1)/i;ende…

小老鼠艾尔的新毯子

今天分享一则非常暖心的故事《小老鼠艾尔的新毯子》最开心的事不是拥有什么宝贝,而是因为你的行动让别人开心,那才是最大的快乐。 小老鼠艾尔有一次在外出的时候,捡到一条漂亮的毛毯,实际上那是一个小姑娘的袜子,是她…

matlab 展开多项式,matlab中freqz的用法以及多项式的展开

对于一个变量a,matlab中定义需要这样 syms a;定义之后就可以写由变量组成的式子,比如 c(1a^-1)^5;可以用expand(c) 就能把c展开成多项式,每一项的系数就可以看到。freqz的用法MATLAB提供了专门用于求离散系统频响特性的函数freqz(…

IE11浏览器一个窗口打开多个页面设置方法

ie1166760一个窗口打开多个页面设置方法 IE11浏览器怎么设置一个窗口打开多个页面?一般新系统安装好了以后,默认的ie浏览器一个窗口都只能打开一个页面,一旦页面打开的多了的话,就会很卡,拖慢电脑的运行速度,而且整个…

php 如何模拟浏览器,利用php的curl扩展进行模拟浏览器访问网页

我们一般要抓取一个网站的静态页面来完成我们的需求,其实在这里面有很多种方式可以完成,php内置函数file_get_contents();file();readfile();都可以进行网页抓取,但是这种方式毕竟是有很大局限性的,例如我们要访问一个需要登录的网…

如何用极路由新插件【搜狐视频】进行远程下载

本文播放器家园网小编给大家分享如何用极路由新插件【搜狐视频】进行远程下载,如果大家在使用搜狐视频过程当中遇到类似问题,欢迎阅读本文!此外,在搜狐视频视频播放器上观看更流畅,画质更清晰,拒绝卡慢钝,而…

php数据库可转java数据库,php转java 系列2 Spring boo 链接数据库jdbc

php转java 系列2 Spring boo 链接数据库jdbcJDBC首先创建一个新项目,在创建项目时要注意导入依赖,在项目创建成功后就会看到在 pom.xml 文件中找到,但是如果在创建项目的时候没有导入,就要在pom.xml中手动的添加依赖;o…

edge浏览器下载位置设置在哪里设置

edge66760下载位置设置在哪里设置 edge浏览器下载位置设置在哪?很多Win10用户要求微软为Edge浏览器增加下载位置设置选项,那么win10 Edge浏览器的默认下载位置在哪里修改?怎么修改?在Windows10的反馈应用中,很多用户都反映Edge浏览器没有自定义下载位…

Python使用训练数据拟合模型

# 假设“满意度”是因变量,其他的是自变量 # 提取自变量(特征)和因变量(目标) X df_filtered_cleaned[[Bonus, Enhancement, Time_in_seconds]] y df_filtered_cleaned[Satisfaction] # 分割为训练集和测试集。 …

php连接excel表格数据类型,TP5 中使用PHPExcel 导出导入数据到excel表格

将下载好的PHPExcel文件夹放置在框架中的Vendor目录下,注意目录的结构,按照我的代码来基本上直接引用就能使用,如下图:导出数据代码如下//导出数据表 开始public function product(){$listdb(product)->select();vendor("…

PPTV网络电视如何修复浏览器支持异常

这篇文章主要说的是PPTV网络电视如何修复66760支持异常,希望可以帮助大家。pptv播放器是一款专注视频播放的客户端软件,免费下载安装,观看高清正版影视,可在线享受pptv播放器网站内全部免费高清正版视频,是最个性化、时…