ITeye博客

2008 年文章归档

共 5 篇文章

jackrabbit 保存处理

if (session.hasPendingChanges()) session.save();

2008-12-24 16:31 · JackRabbit学习

InputSteam to OutputStream

InputStream in = node.getProperty("jcr:data").getStream(); ByteArrayOutputStream out = new ByteArrayOutputStream(500 * 1024); makeThumbnail(in, out); out.flush(); node.setProperty("dms:Thumbnail", new ByteArrayInputStream(out .toByteArray())); node.save();

2008-10-23 16:00 · java学习

sling中配置servlet是否被访问到

@scr.property name="sling.servlet.paths" value="/system/services/download" @scr.property name="sling.servlet.methods" values.0="POST" @scr.property name="sling.servlet.paths" 为访问路径

2008-10-21 10:05 · java学习 · Servlet

远程调试 debug

-Dcom.sun.management.jmxremote -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=30303,server=y,suspend=n

2008-10-20 13:11 · java学习 · Socket · SUN

使用java打包为zip文件

public void zipFile() throws IOException { String dir="e:/testPicture"; File d = new File(dir); if (!d.isDirectory()) throw new IllegalArgumentException("Not a directory: " + dir); String entries = d.list(); byte buffer = new byte; // Create a buffer for copying int bytesRead; //File zipfile=new Fi…

2008-10-20 10:26 · java学习 · Java · F#