@@ -114,6 +114,20 @@ public static IBaseDataObject getInstance(final byte[] payload, final String fil
114
114
return getInstance (payload , filename , fileTypeAndForm , fileTypeAndForm );
115
115
}
116
116
117
+ /**
118
+ * Get an instance of the configured DataObject impl with filename, form, and file type set, and top level document
119
+ *
120
+ * @param payload the payload data
121
+ * @param filename the filename
122
+ * @param fileTypeAndForm the form and filetype to set on the IBDO
123
+ * @param tld The top level document
124
+ * @return an IBDO with the payload, filename, top level document set with the file type and form set to the same value
125
+ */
126
+ public static IBaseDataObject getInstance (final byte [] payload , final String filename , final String fileTypeAndForm , IBaseDataObject tld ) {
127
+ final Object o = Factory .create (clazz , payload , filename , fileTypeAndForm , tld );
128
+ return (IBaseDataObject ) o ;
129
+ }
130
+
117
131
/**
118
132
* Get an instance of the configured DataObject impl with filename, form, and file type set
119
133
*
@@ -128,6 +142,22 @@ public static IBaseDataObject getInstance(final byte[] payload, final String fil
128
142
return (IBaseDataObject ) o ;
129
143
}
130
144
145
+ /**
146
+ * Get an instance of the configured DataObject impl with filename, form, file type, and top level document set
147
+ *
148
+ * @param payload the payload data
149
+ * @param filename the filename
150
+ * @param form the form to set on the IBDO
151
+ * @param fileType the file type to set on the IBDO
152
+ * @param tld The top level document
153
+ * @return an IBDO with the payload, filename, file type, form, and top level document set
154
+ */
155
+ public static IBaseDataObject getInstance (final byte [] payload , final String filename , final String form , final String fileType ,
156
+ IBaseDataObject tld ) {
157
+ final Object o = Factory .create (clazz , payload , filename , form , fileType , tld );
158
+ return (IBaseDataObject ) o ;
159
+ }
160
+
131
161
/* IExtractedRecord */
132
162
133
163
/**
0 commit comments