@Test public void testGetStreamProfile() throws Exception { LocalStorage storage = new LocalStorage(); LocalObject lobject = storage.create(); String dsID = BinaryEditor.FULL_ID; MediaType mime = MediaType.TEXT_PLAIN_TYPE; String label = "label"; XmlStreamEditor editor = lobject.getEditor(FoxmlUtils.managedProfile(dsID, mime, label)); assertNotNull(editor); assertNotNull(editor.getProfile()); assertEquals(mime.toString(), editor.getProfile().getDsMIME()); assertNull(editor.getProfile().getDsFormatURI()); byte[] data = "data".getBytes("UTF-8"); editor.write(data, 0, null); lobject.flush(); List<DatastreamProfile> resultProfiles = lobject.getStreamProfile(null); assertNotNull(resultProfiles); assertEquals(1, resultProfiles.size()); assertEquals(dsID, resultProfiles.get(0).getDsID()); }
public LocalObject create() { return create((String) null, null); }
LocalStorage { public LocalObject create() { return create((String) null, null); } }
LocalStorage { public LocalObject create() { return create((String) null, null); }  }
LocalStorage { public LocalObject create() { return create((String) null, null); }  LocalObject load(String pid, File foxml); LocalObject create(); LocalObject create(String pid); LocalObject create(DigitalObject dobj); LocalObject create(File foxml, DigitalObject dobj); LocalObject create(File foxml); LocalObject create(String pid, File foxml); }
LocalStorage { public LocalObject create() { return create((String) null, null); }  LocalObject load(String pid, File foxml); LocalObject create(); LocalObject create(String pid); LocalObject create(DigitalObject dobj); LocalObject create(File foxml, DigitalObject dobj); LocalObject create(File foxml); LocalObject create(String pid, File foxml);  }