MCPcopy Create free account
hub / github.com/LibreOffice/core / closeOutput

Method closeOutput

odk/examples/java/Storage/TestHelper.java:631–660  ·  view source on GitHub ↗
( XStream xStream )

Source from the content-addressed store, hash-verified

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 {

Callers 5

testPipeMethod · 0.45
implts_exportMethod · 0.45
storeLinkToStorageMethod · 0.45
CreateTempFileMethod · 0.45
testMethod · 0.45

Calls 2

ErrorMethod · 0.95
getOutputStreamMethod · 0.45

Tested by

no test coverage detected