Revision 639 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/persistence/PersistenceManager.java
PersistenceManager.java | ||
---|---|---|
444 | 444 |
* data which has been serialized by the same implementation. |
445 | 445 |
* </p> |
446 | 446 |
* |
447 |
* @param reader
|
|
447 |
* @param out
|
|
448 | 448 |
* @return |
449 | 449 |
* @throws PersistenceValidateExceptions |
450 | 450 |
*/ |
... | ... | |
453 | 453 |
|
454 | 454 |
/** |
455 | 455 |
* <p> |
456 |
* De-serializes an state from the data read from the provided |
|
457 |
* <code>is</code>. Depending on the implementation the serialized data |
|
458 |
* may have different formats, such as XML or binary data. |
|
459 |
* </p> |
|
460 |
* |
|
461 |
* <p> |
|
462 |
* Note that a particular implementation will only be able to de-serialize |
|
463 |
* data which has been serialized by the same implementation. |
|
464 |
* </p> |
|
465 |
* |
|
466 |
* @param reader |
|
467 |
* @return |
|
468 |
* |
|
469 |
* @param is |
|
470 |
* @return |
|
471 |
*/ |
|
472 |
public Object getObject(InputStream is); |
|
473 |
|
|
474 |
/** |
|
475 |
* <p> |
|
476 |
* Serializes the object "obj" and writes the serialized data in |
|
477 |
* the provided {@link OutputStream}. Depending on the implementation the |
|
478 |
* serialized data may have different formats, such as XML or binary data. |
|
479 |
* </p> |
|
480 |
* |
|
481 |
* <p> |
|
482 |
* Note that a particular implementation will only be able to de-serialize |
|
483 |
* data which has been serialized by the same implementation. |
|
484 |
* </p> |
|
485 |
* |
|
486 |
* @param os |
|
487 |
* @param obj |
|
488 |
*/ |
|
489 |
public void putObject(OutputStream os, Object obj); |
|
490 |
|
|
491 |
/** |
|
492 |
* <p> |
|
456 | 493 |
* Sets the validation which will be applied in {@link #getState(Object)}, |
457 | 494 |
* {@link #create(PersistentState)} methods. Validation ensures that |
458 | 495 |
* persisted or de-persisted objects match the declared definition (which |
Also available in: Unified diff