Sleuth Kit Java Bindings (JNI)  4.11.1
Java bindings for using The Sleuth Kit
UnsupportedContent.java
Go to the documentation of this file.
1 /*
2  * Sleuth Kit Data Model
3  *
4  * Copyright 2021 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.datamodel;
20 
27 public class UnsupportedContent extends AbstractContent {
28 
35  protected UnsupportedContent(SleuthkitCase db, long obj_id) {
36  super(db, obj_id, "Unsupported Content");
37  }
38 
39  @Override
40  public int read(byte[] buf, long offset, long len) throws TskCoreException {
41  return 0;
42  }
43 
44  @Override
45  public void close() {
46  // Do nothing
47  }
48 
49  @Override
50  public long getSize() {
51  return 0;
52  }
53 
54  @Override
55  public <T> T accept(ContentVisitor<T> v) {
56  return v.visit(this);
57  }
58 
59  @Override
60  public <T> T accept(SleuthkitItemVisitor<T> v) {
61  return v.visit(this);
62  }
63 }
int read(byte[] buf, long offset, long len)
UnsupportedContent(SleuthkitCase db, long obj_id)

Copyright © 2011-2021 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.