Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Christnowx
Gephi
提交
4e459385
G
Gephi
项目概览
Christnowx
/
Gephi
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gephi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4e459385
编写于
5月 14, 2017
作者:
E
Eduardo Ramos
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix #1691 v0.9.1 unable to read v0.9 gephi file
上级
5b69bfb8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
4 deletion
+18
-4
modules/GraphAPI/src/main/java/org/gephi/graph/GraphPersistenceProvider.java
...c/main/java/org/gephi/graph/GraphPersistenceProvider.java
+14
-1
modules/GraphAPI/src/main/nbm/manifest.mf
modules/GraphAPI/src/main/nbm/manifest.mf
+1
-1
modules/ProjectAPI/src/main/java/org/gephi/project/io/LoadTask.java
...ojectAPI/src/main/java/org/gephi/project/io/LoadTask.java
+2
-1
pom.xml
pom.xml
+1
-1
未找到文件。
modules/GraphAPI/src/main/java/org/gephi/graph/GraphPersistenceProvider.java
浏览文件 @
4e459385
...
...
@@ -67,6 +67,8 @@ public class GraphPersistenceProvider implements WorkspaceBytesPersistenceProvid
}
}
private
static
final
int
GRAPHSTORE_SERIALIZATION_GRAPHMODEL_CONFIG_ID
=
205
;
@Override
public
void
readBytes
(
DataInputStream
stream
,
Workspace
workspace
)
{
GraphModel
model
=
workspace
.
getLookup
().
lookup
(
GraphModel
.
class
);
...
...
@@ -74,7 +76,18 @@ public class GraphPersistenceProvider implements WorkspaceBytesPersistenceProvid
throw
new
IllegalStateException
(
"The graphModel wasn't null"
);
}
try
{
model
=
GraphModel
.
Serialization
.
read
(
stream
);
//Detect if the serialized graphstore declares its own version:
stream
.
mark
(
1
);
int
firstFieldType
=
stream
.
readUnsignedByte
();
stream
.
reset
();
if
(
firstFieldType
==
GRAPHSTORE_SERIALIZATION_GRAPHMODEL_CONFIG_ID
)
{
//Old graphstore, from Gephi 0.9.0
model
=
GraphModel
.
Serialization
.
readWithoutVersionHeader
(
stream
,
0.0f
/* no version, first was 0.4*/
);
//Previous to version header existing at all
}
else
{
model
=
GraphModel
.
Serialization
.
read
(
stream
);
}
workspace
.
add
(
model
);
}
catch
(
IOException
ex
)
{
throw
new
RuntimeException
(
ex
);
...
...
modules/GraphAPI/src/main/nbm/manifest.mf
浏览文件 @
4e459385
Manifest-Version: 1.0
OpenIDE-Module-Localizing-Bundle: org/gephi/graph/api/Bundle.properties
AutoUpdate-Essential-Module: true
OpenIDE-Module-Specification-Version: 0.9.1.
2
OpenIDE-Module-Specification-Version: 0.9.1.
3
OpenIDE-Module-Display-Category: Gephi Core
OpenIDE-Module-Name: Graph API
modules/ProjectAPI/src/main/java/org/gephi/project/io/LoadTask.java
浏览文件 @
4e459385
...
...
@@ -41,6 +41,7 @@
*/
package
org.gephi.project.io
;
import
java.io.BufferedInputStream
;
import
java.io.DataInputStream
;
import
java.io.File
;
import
java.io.InputStream
;
...
...
@@ -321,7 +322,7 @@ public class LoadTask implements LongTask, Runnable {
InputStream
is
=
null
;
DataInputStream
stream
=
null
;
try
{
is
=
zipFile
.
getInputStream
(
entry
);
is
=
new
BufferedInputStream
(
zipFile
.
getInputStream
(
entry
)
);
stream
=
new
DataInputStream
(
is
);
persistenceProvider
.
readBytes
(
stream
,
workspace
);
}
finally
{
...
...
pom.xml
浏览文件 @
4e459385
...
...
@@ -134,7 +134,7 @@
<netbeans.version>
RELEASE81
</netbeans.version>
<!-- Graphstore version -->
<graphstore.version>
0.5.
5
</graphstore.version>
<graphstore.version>
0.5.
7
</graphstore.version>
<!-- Localization ZIP version, from 'http://netbeans.org/project_downloads/nblocalization' -->
<gephi.platform.localization.version>
1.1-NB80
</gephi.platform.localization.version>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录