com.healthmarketscience.jackcess.util
Class OleBlob.Builder

java.lang.Object
  extended by com.healthmarketscience.jackcess.util.OleBlob.Builder
Enclosing interface:
OleBlob

public static class OleBlob.Builder
extends Object

Builder style class for constructing an OleBlob. See OleBlob for example usage.


Field Summary
static String PACKAGE_PRETTY_NAME
           
static String PACKAGE_TYPE_NAME
           
 
Constructor Summary
OleBlob.Builder()
           
 
Method Summary
static OleBlob fromInternalData(byte[] bytes)
           
 byte[] getBytes()
           
 String getClassName()
           
 long getContentLength()
           
 String getFileName()
           
 String getFilePath()
           
 String getPrettyName()
           
 InputStream getStream()
           
 OleBlob.ContentType getType()
           
 String getTypeName()
           
 OleBlob.Builder setLink(File f)
           
 OleBlob.Builder setLinkFileName(String fileName)
           
 OleBlob.Builder setLinkPath(String link)
           
 OleBlob.Builder setOther(File f)
           
 OleBlob.Builder setOtherBytes(byte[] bytes)
           
 OleBlob.Builder setOtherStream(InputStream in, long length)
           
 OleBlob.Builder setPackageClassName(String className)
           
 OleBlob.Builder setPackagePrettyName(String prettyName)
           
 OleBlob.Builder setPackageTypeName(String typeName)
           
 OleBlob.Builder setSimplePackage(File f)
           
 OleBlob.Builder setSimplePackageBytes(byte[] bytes)
           
 OleBlob.Builder setSimplePackageFileName(String fileName)
           
 OleBlob.Builder setSimplePackageFilePath(String filePath)
           
 OleBlob.Builder setSimplePackageStream(InputStream in, long length)
           
 OleBlob toBlob()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGE_PRETTY_NAME

public static final String PACKAGE_PRETTY_NAME
See Also:
Constant Field Values

PACKAGE_TYPE_NAME

public static final String PACKAGE_TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

OleBlob.Builder

public OleBlob.Builder()
Method Detail

getType

public OleBlob.ContentType getType()

getBytes

public byte[] getBytes()

getStream

public InputStream getStream()

getContentLength

public long getContentLength()

getFileName

public String getFileName()

getFilePath

public String getFilePath()

getPrettyName

public String getPrettyName()

getClassName

public String getClassName()

getTypeName

public String getTypeName()

setSimplePackageBytes

public OleBlob.Builder setSimplePackageBytes(byte[] bytes)

setSimplePackageStream

public OleBlob.Builder setSimplePackageStream(InputStream in,
                                              long length)

setSimplePackageFileName

public OleBlob.Builder setSimplePackageFileName(String fileName)

setSimplePackageFilePath

public OleBlob.Builder setSimplePackageFilePath(String filePath)

setSimplePackage

public OleBlob.Builder setSimplePackage(File f)
                                 throws FileNotFoundException
Throws:
FileNotFoundException

setLinkFileName

public OleBlob.Builder setLinkFileName(String fileName)

setLinkPath

public OleBlob.Builder setLinkPath(String link)

setLink

public OleBlob.Builder setLink(File f)

setOtherBytes

public OleBlob.Builder setOtherBytes(byte[] bytes)

setOtherStream

public OleBlob.Builder setOtherStream(InputStream in,
                                      long length)

setOther

public OleBlob.Builder setOther(File f)
                         throws FileNotFoundException
Throws:
FileNotFoundException

setPackagePrettyName

public OleBlob.Builder setPackagePrettyName(String prettyName)

setPackageClassName

public OleBlob.Builder setPackageClassName(String className)

setPackageTypeName

public OleBlob.Builder setPackageTypeName(String typeName)

toBlob

public OleBlob toBlob()
               throws IOException
Throws:
IOException

fromInternalData

public static OleBlob fromInternalData(byte[] bytes)
                                throws IOException
Throws:
IOException


Copyright © 2005–2017 Health Market Science. All rights reserved.