( XStream xStream )
| 629 | } |
| 630 | |
| 631 | public boolean closeOutput( XStream xStream ) |
| 632 | { |
| 633 | XOutputStream xOutTemp = null; |
| 634 | try |
| 635 | { |
| 636 | xOutTemp = xStream.getOutputStream(); |
| 637 | if ( xOutTemp == null ) |
| 638 | { |
| 639 | Error( "Can't get the output part of a stream!" ); |
| 640 | return false; |
| 641 | } |
| 642 | } |
| 643 | catch ( Exception e ) |
| 644 | { |
| 645 | Error( "Can't get the output part of a stream, exception :" + e ); |
| 646 | return false; |
| 647 | } |
| 648 | |
| 649 | try |
| 650 | { |
| 651 | xOutTemp.closeOutput(); |
| 652 | } |
| 653 | catch ( Exception e ) |
| 654 | { |
| 655 | Error( "Can't close output part of a stream, exception :" + e ); |
| 656 | return false; |
| 657 | } |
| 658 | |
| 659 | return true; |
| 660 | } |
| 661 | |
| 662 | public XStorage openSubStorage( XStorage xStorage, String sName, int nMode ) |
| 663 | { |
no test coverage detected