- 授权协议: 未知
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/ClickerMonkey/Azzet
- 软件文档: http://gh.magnos.org/?r=http://clickermonkey.github.com/Azzet/
软件介绍
Azzet 是一个简单的 Java 类库,用于从不同的源中加载资源。
示例代码:
BufferedImage img = Assets.load("http://www.google.com/logos/classicplus.png"); // loaded from website
Font fnt = Assets.load("myfont.ttf", new FontInfo(32.0f)); // loaded from classpath
Clip snd = Assets.load("C:\UserData\MyMusic.wav"); // loaded from file-system
BufferedImage gif = Assets.loadFrom("mygif.gif", BufferedImage.class); // you can request the return type
BufferedImage[] animatedGif = Assets.loadFrom("mygif.gif", "db"); // loads from DatabaseSource saved as "db"
Properties props = Assets.loadFrom("app.properties", "tcp"); // loads from TcpSource saved as "tcp"支持的格式包括:
XML (org.w3c.dom.Document)
PROPERTIES/XML/CONFIG (java.util.Properties, org.magnos.asset.props.Config)
GIF (java.awt.image.BufferedImage[])
PNG/BMP/WBMP/JPEG/JPG (java.awt.image.BufferedImage)
MID/MIDI (javax.sound.midi.Sequence)
WAV/AU/AIFF/SND (javax.sound.sampled.Clip)
TTF (java.awt.Font)
CLASS/CLAZZ (java.lang.Class)
ZIP (org.magnos.asset.zip.Zip)
DAT (byte[], java.io.InputStream, java.nio.ByteBuffer, java.io.ByteArrayOutputStream)
TXT (java.lang.String, char[], java.nio.CharBuffer, java.lang.StringBuffer, java.lang.StringBuilder)
支持的数据源:
Classpath
File-System
Database
JAR
FTP
HTTP/HTTPS
UDP
TCP
SSL
UDP Multicast
示例代码:
FutureAssetBundle bundle = new FutureAssetBundle();
bundle.add( Assets.loadFuture("image.gif", BufferedImage.class) );
bundle.add( Assets.loadFuture("sound.wav", Clip.class) );
BufferedImage image = null;
Clip sound = null;
// game loop
while (running) {
// do stuff
// this occurs during the loading screen....
if (bundle.isComplete()) {
bundle.loaded(); // notify all FutureAsset implementations the asset has been accepted.
image = bundle.getAsset("image.gif");
sound = bundle.getAsset("sound.wav");
// move from loading to play screen
} else {
display bundle.percentComplete();
}
// do other stuff
}
30天自制操作系统
[日] 川合秀实 / 周自恒、李黎明、曾祥江、张文旭 / 人民邮电出版社 / 2012-8 / 99.00元
自己编写一个操作系统,是许多程序员的梦想。也许有人曾经挑战过,但因为太难而放弃了。其实你错了,你的失败并不是因为编写操作系统太难,而是因为没有人告诉你那其实是一件很简单的事。那么,你想不想再挑战一次呢? 这是一本兼具趣味性、实用性与学习性的书籍。作者从计算机的构造、汇编语言、C语言开始解说,让你在实践中掌握算法。在这本书的指导下,从零编写所有代码,30天后就可以制作出一个具有窗口系统的32位......一起来看看 《30天自制操作系统》 这本书的介绍吧!
