| 1 | // tlb2java |
| 2 | package com.moesol.bindings.platform_sdk.data_services; |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * <code>IDL: [ helpstring(""), hidden, dual, oleautomation, dispatchable ] interface</code> |
| 7 | */ |
| 8 | public interface _Stream extends com.moesol.bindings.platform_sdk.component_services.IDispatch { |
| 9 | public static final Class TYPELIB = TYPELIB_2A75196C_D9EB_4129_B803_931327F72D5C.class; |
| 10 | /** |
| 11 | * <code>IDL: [uuid(00000565-0000-0010-8000-00AA006D2EA4)]</code> |
| 12 | */ |
| 13 | public static final com.moesol.bindings.platform_sdk.component_services.GUID IID = new com.moesol.bindings.platform_sdk.component_services.GUID( |
| 14 | 0x00000565, (short)0x0000, (short)0x0010, |
| 15 | new byte[] { |
| 16 | (byte)0x80, (byte)0x00, |
| 17 | (byte)0x00, (byte)0xaa, (byte)0x00, (byte)0x6d, (byte)0x2e, (byte)0xa4 |
| 18 | } ); |
| 19 | |
| 20 | /** |
| 21 | * <code>IDL: [ helpstring("") ]</code> |
| 22 | * |
| 23 | * @return |
| 24 | * <code>IDL: [out] [retval] LONG*</code> |
| 25 | */ |
| 26 | public int getSize(); |
| 27 | |
| 28 | /** |
| 29 | * <code>IDL: [ helpstring("") ]</code> |
| 30 | * |
| 31 | * @return |
| 32 | * <code>IDL: [out] [retval] VARIANT_BOOL*</code> |
| 33 | */ |
| 34 | public boolean getEOS(); |
| 35 | |
| 36 | /** |
| 37 | * <code>IDL: [ helpstring("") ]</code> |
| 38 | * |
| 39 | * @return |
| 40 | * <code>IDL: [out] [retval] LONG*</code> |
| 41 | */ |
| 42 | public int getPosition(); |
| 43 | |
| 44 | /** |
| 45 | * <code>IDL: [ helpstring("") ]</code> |
| 46 | * |
| 47 | * @param pPos |
| 48 | * <code>IDL: [in] LONG</code> |
| 49 | */ |
| 50 | public void setPosition( |
| 51 | /*[in]*/ int pPos); |
| 52 | |
| 53 | /** |
| 54 | * <code>IDL: [ helpstring("") ]</code> |
| 55 | * |
| 56 | * @return |
| 57 | * <code>IDL: [out] [retval] StreamTypeEnum*</code> |
| 58 | */ |
| 59 | public int getType(); |
| 60 | |
| 61 | /** |
| 62 | * <code>IDL: [ helpstring("") ]</code> |
| 63 | * |
| 64 | * @param ptype |
| 65 | * <code>IDL: [in] StreamTypeEnum</code> |
| 66 | */ |
| 67 | public void setType( |
| 68 | /*[in]*/ int ptype); |
| 69 | |
| 70 | /** |
| 71 | * <code>IDL: [ helpstring("") ]</code> |
| 72 | * |
| 73 | * @return |
| 74 | * <code>IDL: [out] [retval] LineSeparatorEnum*</code> |
| 75 | */ |
| 76 | public int getLineSeparator(); |
| 77 | |
| 78 | /** |
| 79 | * <code>IDL: [ helpstring("") ]</code> |
| 80 | * |
| 81 | * @param pLS |
| 82 | * <code>IDL: [in] LineSeparatorEnum</code> |
| 83 | */ |
| 84 | public void setLineSeparator( |
| 85 | /*[in]*/ int pLS); |
| 86 | |
| 87 | /** |
| 88 | * <code>IDL: [ helpstring("") ]</code> |
| 89 | * |
| 90 | * @return |
| 91 | * <code>IDL: [out] [retval] ObjectStateEnum*</code> |
| 92 | */ |
| 93 | public int getState(); |
| 94 | |
| 95 | /** |
| 96 | * <code>IDL: [ helpstring("") ]</code> |
| 97 | * |
| 98 | * @return |
| 99 | * <code>IDL: [out] [retval] ConnectModeEnum*</code> |
| 100 | */ |
| 101 | public int getMode(); |
| 102 | |
| 103 | /** |
| 104 | * <code>IDL: [ helpstring("") ]</code> |
| 105 | * |
| 106 | * @param pMode |
| 107 | * <code>IDL: [in] ConnectModeEnum</code> |
| 108 | */ |
| 109 | public void setMode( |
| 110 | /*[in]*/ int pMode); |
| 111 | |
| 112 | /** |
| 113 | * <code>IDL: [ helpstring("") ]</code> |
| 114 | * |
| 115 | * @return |
| 116 | * <code>IDL: [out] [retval] BSTR*</code> |
| 117 | */ |
| 118 | public String getCharset(); |
| 119 | |
| 120 | /** |
| 121 | * <code>IDL: [ helpstring("") ]</code> |
| 122 | * |
| 123 | * @param pbstrCharset |
| 124 | * <code>IDL: [in] BSTR</code> |
| 125 | */ |
| 126 | public void setCharset( |
| 127 | /*[in]*/ String pbstrCharset); |
| 128 | |
| 129 | /** |
| 130 | * <code>IDL: [ helpstring("") ]</code> |
| 131 | * |
| 132 | * @param NumBytes |
| 133 | * <code>IDL: [in] [optional] [default] LONG</code> |
| 134 | * @return |
| 135 | * <code>IDL: [out] [retval] VARIANT*</code> |
| 136 | */ |
| 137 | public Object Read( |
| 138 | /*[in]*/ int NumBytes); |
| 139 | |
| 140 | /** |
| 141 | * <code>IDL: [ helpstring("") ]</code> |
| 142 | * |
| 143 | * @param Source |
| 144 | * <code>IDL: [in] [optional] VARIANT</code> |
| 145 | * @param Mode |
| 146 | * <code>IDL: [in] [optional] [default] ConnectModeEnum</code> |
| 147 | * @param Options |
| 148 | * <code>IDL: [in] [optional] [default] StreamOpenOptionsEnum</code> |
| 149 | * @param UserName |
| 150 | * <code>IDL: [in] [optional] [default] BSTR</code> |
| 151 | * @param Password |
| 152 | * <code>IDL: [in] [optional] [default] BSTR</code> |
| 153 | */ |
| 154 | public void Open( |
| 155 | /*[in]*/ Object Source, |
| 156 | /*[in]*/ int Mode, |
| 157 | /*[in]*/ int Options, |
| 158 | /*[in]*/ String UserName, |
| 159 | /*[in]*/ String Password); |
| 160 | |
| 161 | /** |
| 162 | * <code>IDL: [ helpstring("") ]</code> |
| 163 | * |
| 164 | */ |
| 165 | public void Close(); |
| 166 | |
| 167 | /** |
| 168 | * <code>IDL: [ helpstring("") ]</code> |
| 169 | * |
| 170 | */ |
| 171 | public void SkipLine(); |
| 172 | |
| 173 | /** |
| 174 | * <code>IDL: [ helpstring("") ]</code> |
| 175 | * |
| 176 | * @param Buffer |
| 177 | * <code>IDL: [in] VARIANT</code> |
| 178 | */ |
| 179 | public void Write( |
| 180 | /*[in]*/ Object Buffer); |
| 181 | |
| 182 | /** |
| 183 | * <code>IDL: [ helpstring("") ]</code> |
| 184 | * |
| 185 | */ |
| 186 | public void SetEOS(); |
| 187 | |
| 188 | /** |
| 189 | * <code>IDL: [ helpstring("") ]</code> |
| 190 | * |
| 191 | * @param DestStream |
| 192 | * <code>IDL: [in] _Stream*</code> |
| 193 | * @param CharNumber |
| 194 | * <code>IDL: [in] [optional] [default] LONG</code> |
| 195 | */ |
| 196 | public void CopyTo( |
| 197 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Stream DestStream, |
| 198 | /*[in]*/ int CharNumber); |
| 199 | |
| 200 | /** |
| 201 | * <code>IDL: [ helpstring("") ]</code> |
| 202 | * |
| 203 | */ |
| 204 | public void Flush(); |
| 205 | |
| 206 | /** |
| 207 | * <code>IDL: [ helpstring("") ]</code> |
| 208 | * |
| 209 | * @param FileName |
| 210 | * <code>IDL: [in] BSTR</code> |
| 211 | * @param Options |
| 212 | * <code>IDL: [in] [optional] [default] SaveOptionsEnum</code> |
| 213 | */ |
| 214 | public void SaveToFile( |
| 215 | /*[in]*/ String FileName, |
| 216 | /*[in]*/ int Options); |
| 217 | |
| 218 | /** |
| 219 | * <code>IDL: [ helpstring("") ]</code> |
| 220 | * |
| 221 | * @param FileName |
| 222 | * <code>IDL: [in] BSTR</code> |
| 223 | */ |
| 224 | public void LoadFromFile( |
| 225 | /*[in]*/ String FileName); |
| 226 | |
| 227 | /** |
| 228 | * <code>IDL: [ helpstring("") ]</code> |
| 229 | * |
| 230 | * @param NumChars |
| 231 | * <code>IDL: [in] [optional] [default] LONG</code> |
| 232 | * @return |
| 233 | * <code>IDL: [out] [retval] BSTR*</code> |
| 234 | */ |
| 235 | public String ReadText( |
| 236 | /*[in]*/ int NumChars); |
| 237 | |
| 238 | /** |
| 239 | * <code>IDL: [ helpstring("") ]</code> |
| 240 | * |
| 241 | * @param Data |
| 242 | * <code>IDL: [in] BSTR</code> |
| 243 | * @param Options |
| 244 | * <code>IDL: [in] [optional] [default] StreamWriteEnum</code> |
| 245 | */ |
| 246 | public void WriteText( |
| 247 | /*[in]*/ String Data, |
| 248 | /*[in]*/ int Options); |
| 249 | |
| 250 | /** |
| 251 | * <code>IDL: [ helpstring("") ]</code> |
| 252 | * |
| 253 | */ |
| 254 | public void Cancel(); |
| 255 | |
| 256 | |
| 257 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
| 258 | public static class Jni extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Jni implements _Stream { |
| 259 | |
| 260 | protected Jni () { |
| 261 | } |
| 262 | |
| 263 | |
| 264 | private native int jni_getSize(); |
| 265 | public int getSize() { |
| 266 | |
| 267 | return jni_getSize(); |
| 268 | } |
| 269 | |
| 270 | private native boolean jni_getEOS(); |
| 271 | public boolean getEOS() { |
| 272 | |
| 273 | return jni_getEOS(); |
| 274 | } |
| 275 | |
| 276 | private native int jni_getPosition(); |
| 277 | public int getPosition() { |
| 278 | |
| 279 | return jni_getPosition(); |
| 280 | } |
| 281 | |
| 282 | private native void jni_setPosition( |
| 283 | /*[in]*/ int p0); |
| 284 | public void setPosition( |
| 285 | /*[in]*/ int p0) { |
| 286 | |
| 287 | jni_setPosition(p0); |
| 288 | } |
| 289 | |
| 290 | private native int jni_getType(); |
| 291 | public int getType() { |
| 292 | |
| 293 | return jni_getType(); |
| 294 | } |
| 295 | |
| 296 | private native void jni_setType( |
| 297 | /*[in]*/ int p0); |
| 298 | public void setType( |
| 299 | /*[in]*/ int p0) { |
| 300 | |
| 301 | jni_setType(p0); |
| 302 | } |
| 303 | |
| 304 | private native int jni_getLineSeparator(); |
| 305 | public int getLineSeparator() { |
| 306 | |
| 307 | return jni_getLineSeparator(); |
| 308 | } |
| 309 | |
| 310 | private native void jni_setLineSeparator( |
| 311 | /*[in]*/ int p0); |
| 312 | public void setLineSeparator( |
| 313 | /*[in]*/ int p0) { |
| 314 | |
| 315 | jni_setLineSeparator(p0); |
| 316 | } |
| 317 | |
| 318 | private native int jni_getState(); |
| 319 | public int getState() { |
| 320 | |
| 321 | return jni_getState(); |
| 322 | } |
| 323 | |
| 324 | private native int jni_getMode(); |
| 325 | public int getMode() { |
| 326 | |
| 327 | return jni_getMode(); |
| 328 | } |
| 329 | |
| 330 | private native void jni_setMode( |
| 331 | /*[in]*/ int p0); |
| 332 | public void setMode( |
| 333 | /*[in]*/ int p0) { |
| 334 | |
| 335 | jni_setMode(p0); |
| 336 | } |
| 337 | |
| 338 | private native String jni_getCharset(); |
| 339 | public String getCharset() { |
| 340 | |
| 341 | return jni_getCharset(); |
| 342 | } |
| 343 | |
| 344 | private native void jni_setCharset( |
| 345 | /*[in]*/ String p0); |
| 346 | public void setCharset( |
| 347 | /*[in]*/ String p0) { |
| 348 | |
| 349 | jni_setCharset(p0); |
| 350 | } |
| 351 | |
| 352 | private native Object jni_Read( |
| 353 | /*[in]*/ int p0); |
| 354 | public Object Read( |
| 355 | /*[in]*/ int p0) { |
| 356 | |
| 357 | return jni_Read(p0); |
| 358 | } |
| 359 | |
| 360 | private native void jni_Open( |
| 361 | /*[in]*/ Object p0, |
| 362 | /*[in]*/ int p1, |
| 363 | /*[in]*/ int p2, |
| 364 | /*[in]*/ String p3, |
| 365 | /*[in]*/ String p4); |
| 366 | public void Open( |
| 367 | /*[in]*/ Object p0, |
| 368 | /*[in]*/ int p1, |
| 369 | /*[in]*/ int p2, |
| 370 | /*[in]*/ String p3, |
| 371 | /*[in]*/ String p4) { |
| 372 | |
| 373 | jni_Open(p0, p1, p2, p3, p4); |
| 374 | } |
| 375 | |
| 376 | private native void jni_Close(); |
| 377 | public void Close() { |
| 378 | |
| 379 | jni_Close(); |
| 380 | } |
| 381 | |
| 382 | private native void jni_SkipLine(); |
| 383 | public void SkipLine() { |
| 384 | |
| 385 | jni_SkipLine(); |
| 386 | } |
| 387 | |
| 388 | private native void jni_Write( |
| 389 | /*[in]*/ Object p0); |
| 390 | public void Write( |
| 391 | /*[in]*/ Object p0) { |
| 392 | |
| 393 | jni_Write(p0); |
| 394 | } |
| 395 | |
| 396 | private native void jni_SetEOS(); |
| 397 | public void SetEOS() { |
| 398 | |
| 399 | jni_SetEOS(); |
| 400 | } |
| 401 | |
| 402 | private native void jni_CopyTo( |
| 403 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Stream p0, |
| 404 | /*[in]*/ int p1); |
| 405 | public void CopyTo( |
| 406 | /*[in]*/ com.moesol.bindings.platform_sdk.data_services._Stream p0, |
| 407 | /*[in]*/ int p1) { |
| 408 | |
| 409 | jni_CopyTo(p0, p1); |
| 410 | } |
| 411 | |
| 412 | private native void jni_Flush(); |
| 413 | public void Flush() { |
| 414 | |
| 415 | jni_Flush(); |
| 416 | } |
| 417 | |
| 418 | private native void jni_SaveToFile( |
| 419 | /*[in]*/ String p0, |
| 420 | /*[in]*/ int p1); |
| 421 | public void SaveToFile( |
| 422 | /*[in]*/ String p0, |
| 423 | /*[in]*/ int p1) { |
| 424 | |
| 425 | jni_SaveToFile(p0, p1); |
| 426 | } |
| 427 | |
| 428 | private native void jni_LoadFromFile( |
| 429 | /*[in]*/ String p0); |
| 430 | public void LoadFromFile( |
| 431 | /*[in]*/ String p0) { |
| 432 | |
| 433 | jni_LoadFromFile(p0); |
| 434 | } |
| 435 | |
| 436 | private native String jni_ReadText( |
| 437 | /*[in]*/ int p0); |
| 438 | public String ReadText( |
| 439 | /*[in]*/ int p0) { |
| 440 | |
| 441 | return jni_ReadText(p0); |
| 442 | } |
| 443 | |
| 444 | private native void jni_WriteText( |
| 445 | /*[in]*/ String p0, |
| 446 | /*[in]*/ int p1); |
| 447 | public void WriteText( |
| 448 | /*[in]*/ String p0, |
| 449 | /*[in]*/ int p1) { |
| 450 | |
| 451 | jni_WriteText(p0, p1); |
| 452 | } |
| 453 | |
| 454 | private native void jni_Cancel(); |
| 455 | public void Cancel() { |
| 456 | |
| 457 | jni_Cancel(); |
| 458 | } |
| 459 | |
| 460 | } |
| 461 | |
| 462 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
| 463 | public static class Disp extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Disp { |
| 464 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
| 465 | return s_instance; |
| 466 | } |
| 467 | |
| 468 | private static Disp s_instance = new Disp(); |
| 469 | |
| 470 | protected Disp() { |
| 471 | addEntry(1, (short)2, "getSize", "()I"); |
| 472 | addEntry(2, (short)2, "getEOS", "()Z"); |
| 473 | addEntry(3, (short)2, "getPosition", "()I"); |
| 474 | addEntry(3, (short)4, "setPosition", "(I)V"); |
| 475 | addEntry(4, (short)2, "getType", "()I"); |
| 476 | addEntry(4, (short)4, "setType", "(I)V"); |
| 477 | addEntry(5, (short)2, "getLineSeparator", "()I"); |
| 478 | addEntry(5, (short)4, "setLineSeparator", "(I)V"); |
| 479 | addEntry(6, (short)2, "getState", "()I"); |
| 480 | addEntry(7, (short)2, "getMode", "()I"); |
| 481 | addEntry(7, (short)4, "setMode", "(I)V"); |
| 482 | addEntry(8, (short)2, "getCharset", "()Ljava/lang/String;"); |
| 483 | addEntry(8, (short)4, "setCharset", "(Ljava/lang/String;)V"); |
| 484 | addEntry(9, (short)1, "Read", "(I)Ljava/lang/Object;"); |
| 485 | addEntry(10, (short)1, "Open", "(Ljava/lang/Object;IILjava/lang/String;Ljava/lang/String;)V"); |
| 486 | addEntry(11, (short)1, "Close", "()V"); |
| 487 | addEntry(12, (short)1, "SkipLine", "()V"); |
| 488 | addEntry(13, (short)1, "Write", "(Ljava/lang/Object;)V"); |
| 489 | addEntry(14, (short)1, "SetEOS", "()V"); |
| 490 | addEntry(15, (short)1, "CopyTo", "(Lcom/moesol/bindings/platform_sdk/data_services/_Stream;I)V"); |
| 491 | addEntry(16, (short)1, "Flush", "()V"); |
| 492 | addEntry(17, (short)1, "SaveToFile", "(Ljava/lang/String;I)V"); |
| 493 | addEntry(18, (short)1, "LoadFromFile", "(Ljava/lang/String;)V"); |
| 494 | addEntry(19, (short)1, "ReadText", "(I)Ljava/lang/String;"); |
| 495 | addEntry(20, (short)1, "WriteText", "(Ljava/lang/String;I)V"); |
| 496 | addEntry(21, (short)1, "Cancel", "()V"); |
| 497 | } |
| 498 | } |
| 499 | } |