Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.util
Class AttachmentUtils

java.lang.Object
  extended by com.jivesoftware.base.util.AttachmentUtils

public class AttachmentUtils
extends java.lang.Object

A set of static utilities for working with attachments and KB images.


Constructor Summary
AttachmentUtils()
           
 
Method Summary
static void saveObjectToFile(long id, java.lang.String sql, java.io.File file)
          Saves the data from the database to the file system for the given object ID and SQL statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentUtils

public AttachmentUtils()
Method Detail

saveObjectToFile

public static void saveObjectToFile(long id,
                                    java.lang.String sql,
                                    java.io.File file)
                             throws java.io.IOException
Saves the data from the database to the file system for the given object ID and SQL statement. This method is used internally when changing from database mode to file system mode for attachments and Knowledge Base images.

Parameters:
id - the ID of the object to save to the file system
sql - the SQL statement for reading the data from the database
file - the file to save the object data to
Throws:
java.io.IOException

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.