Interface UnsavedContentReferenceManager
@API(type=NOT_EXTENDABLE,
     src=PUBLIC)
public interface UnsavedContentReferenceManager
Manager that can be used to find (and save) the resources that have been modified
 during the editing of a document that contained the expanded references to these resources.
- Since:
- 23
- 
Method SummaryModifier and TypeMethodDescriptionGet the descriptors of nodes that correspond to all unsaved references.getUnsavedReferenceInputStream(URL referenceUrl) Get the input stream of the specified reference (whose modifications are not saved).Get the URLs of all the references for which the changes were not saved.booleanvoidMark the document as saved.voidmarkReferenceAsSaved(URL referenceUrl) Mark the specified reference as saved.
- 
Method Details- 
getUnsavedReferencesListGet the URLs of all the references for which the changes were not saved.- Returns:
- The unsaved references URLs. Can be an empty list if there are no such references.
 
- 
getUnsavedReferencedNodeDescriptorsList<UnsavedReferenceNodeDescriptor> getUnsavedReferencedNodeDescriptors()Get the descriptors of nodes that correspond to all unsaved references.- Returns:
- The descriptors of nodes corresponding to all unsaved references. Can be an empty list if there are no such references.
 
- 
getUnsavedReferenceInputStreamGet the input stream of the specified reference (whose modifications are not saved). This input stream offers the entire content of the reference, with all the unsaved modifications applied.- Parameters:
- referenceUrl- The reference URL.
- Returns:
- The input stream.
- Throws:
- IOException- Can be thrown due to incorrect system id, unsupported encodings, files saving permission, etc
 
- 
markReferenceAsSavedMark the specified reference as saved. Signal to the application that the reference should now be considered as saved.- Parameters:
- referenceUrl- The reference URL.
 
- 
isDocumentUnsavedboolean isDocumentUnsaved()- Returns:
- trueif the document has unsaved changes that are not inside references.
 
- 
markDocumentAsSavedvoid markDocumentAsSaved()Mark the document as saved. Signal to the application that the document should now be considered as saved.- Since:
- 23.1
 
 
-