當前位置: 首頁>>代碼示例>>Java>>正文


Java Deserializer.read方法代碼示例

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


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

示例1: readModel

import org.bimserver.plugins.deserializers.Deserializer; //導入方法依賴的package包/類
@Override
protected IfcModelInterface readModel(Deserializer d) throws DeserializeException, IOException {
	// The factory only reports a non-unknown type if the zip has at least
	// one .ifc* file, so this should be safe.
	final ZipEntry first = ifcEntries.get(0);

	return d.read(zipFile.getInputStream(first), first.getName(), first.getSize());
}
 
開發者ID:mondo-project,項目名稱:mondo-hawk,代碼行數:9,代碼來源:IFCZippedModelResource.java

示例2: readModel

import org.bimserver.plugins.deserializers.Deserializer; //導入方法依賴的package包/類
@Override
protected IfcModelInterface readModel(Deserializer d) throws DeserializeException {
	return d.read(ifc);
}
 
開發者ID:mondo-project,項目名稱:mondo-hawk,代碼行數:5,代碼來源:IFCModelResource.java

示例3: readFromBytes

import org.bimserver.plugins.deserializers.Deserializer; //導入方法依賴的package包/類
public static IfcModelInterface readFromBytes(Deserializer deserializer, byte[] bytes, String filename) throws DeserializeException {
	return deserializer.read(new ByteArrayInputStream(bytes), filename, bytes.length, null);
}
 
開發者ID:opensourceBIM,項目名稱:BIMserver,代碼行數:4,代碼來源:DeserializerUtils.java

示例4: readFromFile

import org.bimserver.plugins.deserializers.Deserializer; //導入方法依賴的package包/類
public static IfcModelInterface readFromFile(Deserializer deserializer, Path path) throws DeserializeException, IOException {
	try (InputStream fis = Files.newInputStream(path)) {
		return deserializer.read(fis, path.getFileName().toString(), Files.size(path), null);
	}
}
 
開發者ID:opensourceBIM,項目名稱:BIMserver,代碼行數:6,代碼來源:DeserializerUtils.java


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