本文整理匯總了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());
}
示例2: readModel
import org.bimserver.plugins.deserializers.Deserializer; //導入方法依賴的package包/類
@Override
protected IfcModelInterface readModel(Deserializer d) throws DeserializeException {
return d.read(ifc);
}
示例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);
}
示例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);
}
}