Diff
checker
文本
文本
图像
文档
Excel
文件夹
Legal
Enterprise
桌面版
定价
登录
下载 Diffchecker 桌面版
比较文本
查找两个文本文件之间的差异
工具
历史
实时编辑器
折叠未更改行
关闭换行
视图
拆分
统一
比对精度
智能
单词
字符
语法高亮
选择语法
忽略
文本转换
转到第一个差异
编辑输入
Diffchecker Desktop
运行Diffchecker最安全的方式。获取Diffchecker桌面应用:您的差异永远不会离开您的电脑!
获取桌面版
Untitled diff
创建于
8年前
差异永不过期
清除
导出
分享
解释
23 删除
行
总计
删除
字符
总计
删除
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
47 行
全部复制
10 添加
行
总计
添加
字符
总计
添加
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
33 行
全部复制
/*
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package org.apache.any23.cli.flows;
package org.apache.any23.cli.flows;
复制
已复制
复制
已复制
import org.apache.any23.
extractor.ExtractorDescription;
import org.apache.any23.
writer.DelegatingWriterFactory;
import org.apache.any23.extractor.ExtractorFactory;
import org.apache.any23.
writer.TripleHandler;
import org.apache.any23.extractor.SimpleExtractorFactory;
import org.apache.any23.
rdf.Prefixes;
import java.util.Arrays;
public class PeopleExtractorFactory extends SimpleExtractorFactory<PeopleExtractor>
implements ExtractorFactory<PeopleExtractor> {
public static final String NAME = "people";
public static final Prefixes prefixes = null;
复制
已复制
复制
已复制
private static final ExtractorDescription descriptionInstance = new
PeopleExtractorFactory
();
public class
PeopleExtractorFactory
implements DelegatingWriterFactory {
复制
已复制
复制
已复制
public
PeopleExtractorFactory
() {
@Override
super(NAME, prefixes, Arrays.asList("*/*"), null)
;
public
String getIdentifier
() {
return "people"
;
}
}
@Override
@Override
复制
已复制
复制
已复制
public
PeopleExtractor createExtractor(
) {
public
TripleHandler getTripleWriter(TripleHandler delegate
) {
return new PeopleExtractor(
);
return new PeopleExtractor(
delegate);
}
public static ExtractorDescription getDescriptionInstance() {
return descriptionInstance;
}
}
}
}
已保存差异
原始文本
打开文件
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.any23.cli.flows; import org.apache.any23.extractor.ExtractorDescription; import org.apache.any23.extractor.ExtractorFactory; import org.apache.any23.extractor.SimpleExtractorFactory; import org.apache.any23.rdf.Prefixes; import java.util.Arrays; public class PeopleExtractorFactory extends SimpleExtractorFactory<PeopleExtractor> implements ExtractorFactory<PeopleExtractor> { public static final String NAME = "people"; public static final Prefixes prefixes = null; private static final ExtractorDescription descriptionInstance = new PeopleExtractorFactory(); public PeopleExtractorFactory() { super(NAME, prefixes, Arrays.asList("*/*"), null); } @Override public PeopleExtractor createExtractor() { return new PeopleExtractor(); } public static ExtractorDescription getDescriptionInstance() { return descriptionInstance; } }
更改后文本
打开文件
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.any23.cli.flows; import org.apache.any23.writer.DelegatingWriterFactory; import org.apache.any23.writer.TripleHandler; public class PeopleExtractorFactory implements DelegatingWriterFactory { @Override public String getIdentifier() { return "people"; } @Override public TripleHandler getTripleWriter(TripleHandler delegate) { return new PeopleExtractor(delegate); } }
查找差异