summaryrefslogtreecommitdiff
path: root/java/demo/Manual/lifecycle/FilesystemI/FileI.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/demo/Manual/lifecycle/FilesystemI/FileI.java')
-rw-r--r--java/demo/Manual/lifecycle/FilesystemI/FileI.java86
1 files changed, 0 insertions, 86 deletions
diff --git a/java/demo/Manual/lifecycle/FilesystemI/FileI.java b/java/demo/Manual/lifecycle/FilesystemI/FileI.java
deleted file mode 100644
index 02853ee2d80..00000000000
--- a/java/demo/Manual/lifecycle/FilesystemI/FileI.java
+++ /dev/null
@@ -1,86 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-package FilesystemI;
-
-import Ice.*;
-import Filesystem.*;
-
-public class FileI extends _FileDisp implements NodeI
-{
- public synchronized String
- name(Current c)
- {
- if(_destroyed)
- {
- throw new ObjectNotExistException();
- }
- return _name;
- }
-
- public Identity
- id()
- {
- return _id;
- }
-
- public synchronized String[]
- read(Current c)
- {
- if(_destroyed)
- {
- throw new ObjectNotExistException();
- }
-
- return _lines;
- }
-
- public synchronized void
- write(String[] text, Current c)
- {
- if(_destroyed)
- {
- throw new ObjectNotExistException();
- }
-
- _lines = (String[])text.clone();
- }
-
- public void
- destroy(Current c)
- {
- synchronized(this)
- {
- if(_destroyed)
- {
- throw new ObjectNotExistException();
- }
-
- c.adapter.remove(id());
- _destroyed = true;
- }
-
- _parent.removeEntry(_name);
- }
-
- public FileI(String name, DirectoryI parent)
- {
- _name = name;
- _parent = parent;
- _destroyed = false;
- _id = new Identity();
- _id.name = java.util.UUID.randomUUID().toString();
- }
-
- private String _name;
- private DirectoryI _parent;
- private boolean _destroyed;
- private Identity _id;
- private String[] _lines;
-}