com.healthmarketscience.jackcess.util
Class OleBlob.Builder
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
OleBlob.Builder
public OleBlob.Builder()
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.